Plugging memory leak
Apparently assigning a property to an object will prevent the object from being destroyed. Thanks to @igorw to finding this memory leak
This commit is contained in:
parent
1e298c634b
commit
3c617d96a2
@ -87,6 +87,8 @@ class IoServer {
|
|||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
$this->handleError($e, $conn);
|
$this->handleError($e, $conn);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
unset($conn->decor);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function handleError(\Exception $e, $conn) {
|
public function handleError(\Exception $e, $conn) {
|
||||||
|
Loading…
Reference in New Issue
Block a user