call closeOutEngine to clean up after a ping timeout

This commit is contained in:
Andy 2019-02-11 19:01:43 +00:00
parent 4c98c24047
commit fc4e1802f6

View File

@ -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
} }