Merge pull request #1159 from cobrowseio/development

Call closeOutEngine to clean up after a ping timeout
This commit is contained in:
Erik Little 2019-02-28 07:16:27 -05:00 committed by GitHub
commit 1a8285fcf0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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