Merge branch 'refs/heads/check' into 0.3
This commit is contained in:
commit
78b6e2b6c8
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user