Skip to content

Commit fc4e180

Browse files
committed
call closeOutEngine to clean up after a ping timeout
1 parent 4c98c24 commit fc4e180

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

Source/SocketIO/Engine/SocketEngine.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -544,8 +544,7 @@ open class SocketEngine : NSObject, URLSessionDelegate, SocketEnginePollable, So
544544

545545
// Server is not responding
546546
if pongsMissed > pongsMissedMax {
547-
client?.engineDidClose(reason: "Ping timeout")
548-
547+
closeOutEngine(reason: "Ping timeout")
549548
return
550549
}
551550

0 commit comments

Comments
 (0)