The variable $from should be the variable (parameter) $conn
This commit is contained in:
parent
340f036d37
commit
a968ea2e43
@ -166,7 +166,7 @@ class WsServer implements HttpServerInterface {
|
||||
*/
|
||||
public function onError(ConnectionInterface $conn, \Exception $e) {
|
||||
if ($this->connections->contains($conn)) {
|
||||
$this->delegate->onError($this->connections[$from]->connection, $e);
|
||||
$this->delegate->onError($this->connections[$conn]->connection, $e);
|
||||
} else {
|
||||
$conn->close();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user