Skip to content

Commit a32f2d3

Browse files
committed
Fix #521
1 parent fee53e0 commit a32f2d3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Source/SocketIOClient.swift

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,9 @@ public final class SocketIOClient : NSObject, SocketEngineClient, SocketParsable
253253
}
254254

255255
public func engineDidClose(reason: String) {
256-
waitingPackets.removeAll()
256+
parseQueue.sync {
257+
self.waitingPackets.removeAll()
258+
}
257259

258260
if status != .disconnected {
259261
status = .notConnected

0 commit comments

Comments
 (0)