Merge pull request #429 from JaapMoolenaar/patch-1

The variable $from should be the variable (parameter) $conn
This commit is contained in:
Chris Boden 2016-05-17 11:23:08 -04:00
commit b0e72bb7da

View File

@ -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();
}