From 6fbd8cae930a5c452c94aea41acde7d09b231a0a Mon Sep 17 00:00:00 2001 From: Chris Boden Date: Wed, 11 Jul 2012 11:00:44 -0400 Subject: [PATCH] Cleanup --- WsServer.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/WsServer.php b/WsServer.php index 2edca90..bdb14fb 100644 --- a/WsServer.php +++ b/WsServer.php @@ -130,11 +130,7 @@ class WsServer implements MessageComponentInterface { if ($this->connections->contains($conn)) { $decor = $this->connections[$conn]; $this->connections->detach($conn); - } - // WS::onOpen is not called when the socket connects, it's call when the handshake is done - // The socket could close before WS calls onOpen, so we need to check if we've "opened" it for the developer yet - if (isset($decor)) { $this->_decorating->onClose($decor); } }