Skip to content

Commit 21376c1

Browse files
committed
Force unwrap maxReconnectAttempts var when printing debug logging
1 parent c8b9264 commit 21376c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/PusherWebsocketDelegate.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ extension PusherConnection: WebSocketDelegate {
8686
let timeInterval = maxReconnectGapInSeconds != nil ? min(reconnectInterval, maxReconnectGapInSeconds!)
8787
: reconnectInterval
8888

89-
self.debugLogger?("[PUSHER DEBUG] Waiting \(timeInterval) seconds before attempting to reconnect (attempt \(reconnectAttempts + 1) of \(reconnectAttemptsMax))")
89+
self.debugLogger?("[PUSHER DEBUG] Waiting \(timeInterval) seconds before attempting to reconnect (attempt \(reconnectAttempts + 1) of \(reconnectAttemptsMax!))")
9090

9191
reconnectTimer = NSTimer.scheduledTimerWithTimeInterval(
9292
timeInterval,

0 commit comments

Comments
 (0)