From 505b28844ce9b3f540e5c03e42ed145b733fc8e1 Mon Sep 17 00:00:00 2001 From: Andrii Horishnii Date: Wed, 4 Oct 2023 18:10:33 +0300 Subject: [PATCH] Fix the ability to set custom reconnectAfterMs --- src/main/kotlin/org/phoenixframework/Socket.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/org/phoenixframework/Socket.kt b/src/main/kotlin/org/phoenixframework/Socket.kt index 73f5e23..253df13 100644 --- a/src/main/kotlin/org/phoenixframework/Socket.kt +++ b/src/main/kotlin/org/phoenixframework/Socket.kt @@ -273,7 +273,7 @@ class Socket( // Create reconnect timer this.reconnectTimer = TimeoutTimer( dispatchQueue = dispatchQueue, - timerCalculation = reconnectAfterMs, + timerCalculation = { reconnectAfterMs(it) }, callback = { this.logItems("Socket attempting to reconnect") this.teardown { this.connect() }