Merge pull request #1159 from cobrowseio/development
Call closeOutEngine to clean up after a ping timeout
This commit is contained in:
		
						commit
						1a8285fcf0
					
				@ -544,8 +544,7 @@ open class SocketEngine : NSObject, URLSessionDelegate, SocketEnginePollable, So
 | 
			
		||||
 | 
			
		||||
        // Server is not responding
 | 
			
		||||
        if pongsMissed > pongsMissedMax {
 | 
			
		||||
            client?.engineDidClose(reason: "Ping timeout")
 | 
			
		||||
 | 
			
		||||
            closeOutEngine(reason: "Ping timeout")
 | 
			
		||||
            return
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user