call closeOutEngine to clean up after a ping timeout
This commit is contained in:
parent
4c98c24047
commit
fc4e1802f6
@ -544,8 +544,7 @@ open class SocketEngine : NSObject, URLSessionDelegate, SocketEnginePollable, So
|
|||||||
|
|
||||||
// Server is not responding
|
// Server is not responding
|
||||||
if pongsMissed > pongsMissedMax {
|
if pongsMissed > pongsMissedMax {
|
||||||
client?.engineDidClose(reason: "Ping timeout")
|
closeOutEngine(reason: "Ping timeout")
|
||||||
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user