From 695995d3e71c6ce1064951f1549e8593f2824522 Mon Sep 17 00:00:00 2001 From: Kurairaito Date: Fri, 8 Apr 2016 21:24:28 +0200 Subject: [PATCH] Update WsServer.php fixed crash when keepalive was called --- src/Ratchet/WebSocket/WsServer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Ratchet/WebSocket/WsServer.php b/src/Ratchet/WebSocket/WsServer.php index c05fe84..d80b665 100644 --- a/src/Ratchet/WebSocket/WsServer.php +++ b/src/Ratchet/WebSocket/WsServer.php @@ -211,7 +211,7 @@ class WsServer implements HttpServerInterface { $lastPing = new Frame(uniqid(), true, Frame::OP_PING); foreach ($this->connections as $key => $conn) { - $wsConn = $this->connections[$from]->connection; + $wsConn = $this->connections[$conn]->connection; $wsConn->send($lastPing); $pingedConnections->attach($wsConn);