diff --git a/SocketIOClientSwift/SocketIOClient.swift b/SocketIOClientSwift/SocketIOClient.swift index ea0b562..4a08b63 100644 --- a/SocketIOClientSwift/SocketIOClient.swift +++ b/SocketIOClientSwift/SocketIOClient.swift @@ -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):