Skip to content

Commit b35e58d

Browse files
authored
Merge pull request #97 from salemove/fix-reconnect-after-ms
Fix the ability to set custom reconnectAfterMs
2 parents de1213b + 505b288 commit b35e58d

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)