remove all data on engine close
This commit is contained in:
parent
f752507a11
commit
09a26c0b1c
@ -306,6 +306,8 @@ public final class SocketIOClient: NSObject, SocketEngineClient, SocketLogClient
|
||||
}
|
||||
|
||||
public func engineDidClose(reason:String) {
|
||||
waitingData.removeAll()
|
||||
|
||||
if status == SocketIOClientStatus.Closed || !reconnects {
|
||||
didDisconnect(reason)
|
||||
} else if status != SocketIOClientStatus.Reconnecting {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user