From e549b1e39daefebc2f2290c6afdfc6ba5d12e51f Mon Sep 17 00:00:00 2001 From: Igor Wiedler Date: Mon, 21 Jan 2013 05:20:49 +0100 Subject: [PATCH] Remove all listeners from socket server on shutdown --- Server.php | 1 + 1 file changed, 1 insertion(+) diff --git a/Server.php b/Server.php index b2222c51..06892470 100644 --- a/Server.php +++ b/Server.php @@ -58,6 +58,7 @@ public function shutdown() { $this->loop->removeStream($this->master); fclose($this->master); + $this->removeAllListeners(); } public function createConnection($socket)