make sure wait is positive

This commit is contained in:
Erik 2015-10-18 16:33:31 -04:00
parent 45b5852e50
commit c99f9a6b97

View File

@ -77,7 +77,7 @@ public final class SocketIOClient: NSObject, SocketEngineClient {
case .ReconnectAttempts(let attempts):
reconnectAttempts = attempts
case .ReconnectWait(let wait):
reconnectWait = wait
reconnectWait = abs(wait)
case .Nsp(let nsp):
self.nsp = nsp
case .Log(let log):