Skip to content
This repository was archived by the owner on May 14, 2024. It is now read-only.

Commit 3acdb80

Browse files
Fixed for sending events before socket is connected
1 parent d71d74a commit 3acdb80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

SocketIO.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ - (void) sendHeartbeat
248248

249249
- (void) send:(SocketIOPacket *)packet
250250
{
251-
if(![self isConnected]) {
251+
if(![self isConnected] && ![self isConnecting]) {
252252
DEBUGLOG(@"Already disconnected!");
253253
return;
254254
}

0 commit comments

Comments
 (0)