Commit cb3af02 Martijn Croonen
committed
1 parent d5ec350 commit cb3af02 Copy full SHA for cb3af02
File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -137,7 +137,7 @@ public function accept() {
137
137
$ aRemoteHost = explode (': ' , stream_socket_get_name ($ rConnection , true ));
138
138
139
139
/* Check if a connection from this IP is already in the CONNECTING state */
140
- if (isset ( WebSocketConnection :: $ aInConnectingState[ $ aRemoteHost [ 0 ]] ))
140
+ if (array_key_exists ( $ aRemoteHost [ 0 ], WebSocketConnection :: $ aInConnectingState ))
141
141
{
142
142
/* Queue it if so */
143
143
$ this -> m_aConnectionQueue [] = array ('ip ' => $ aRemoteHost [0 ], 'conn ' => $ rConnection );
@@ -155,7 +155,7 @@ public function accept() {
155
155
foreach ($ this -> m_aConnectionQueue as $ sKey => &$ aConnection )
156
156
{
157
157
/* If the previous connection from this client is no longer CONNECTING */
158
- if (!isset (WebSocketConnection :: $ aInConnectingState [ $ aConnection ['ip ' ]] ))
158
+ if (!array_key_exists ( $ aConnection ['ip ' ], WebSocketConnection :: $ aInConnectingState ))
159
159
{
160
160
$ rConnection = $ aConnection ['conn ' ];
161
161
WebSocketConnection :: $ aInConnectingState [$ aConnection ['ip ' ]] = true ;
You can’t perform that action at this time.
0 commit comments