Merge branch 'refs/heads/check' into 0.3

This commit is contained in:
Chris Boden 2013-10-14 10:22:29 -04:00
commit 78b6e2b6c8

View File

@ -150,7 +150,9 @@ class WsServer implements HttpServerInterface {
*/
public function onError(ConnectionInterface $conn, \Exception $e) {
if ($conn->WebSocket->established) {
$this->component->onError($this->connections[$conn], $e);
if ($this->connections->contains($conn)) {
$this->component->onError($this->connections[$conn], $e);
}
} else {
$conn->close();
}