Skip to content

Commit 505b288

Browse files
committed
Fix the ability to set custom reconnectAfterMs
1 parent de1213b commit 505b288

File tree

1 file changed

+1
-1
lines changed
  • src/main/kotlin/org/phoenixframework

1 file changed

+1
-1
lines changed

src/main/kotlin/org/phoenixframework/Socket.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,7 +273,7 @@ class Socket(
273273
// Create reconnect timer
274274
this.reconnectTimer = TimeoutTimer(
275275
dispatchQueue = dispatchQueue,
276-
timerCalculation = reconnectAfterMs,
276+
timerCalculation = { reconnectAfterMs(it) },
277277
callback = {
278278
this.logItems("Socket attempting to reconnect")
279279
this.teardown { this.connect() }

0 commit comments

Comments
 (0)