From 75e97b4804f8e4639d35b4d0da82ada557038c35 Mon Sep 17 00:00:00 2001 From: win11 Date: Thu, 21 Mar 2024 18:22:08 +0300 Subject: [PATCH] fix reconnect bug --- src/com/smartfoxserver/v2/bitswarm/BitSwarmClient.hx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/smartfoxserver/v2/bitswarm/BitSwarmClient.hx b/src/com/smartfoxserver/v2/bitswarm/BitSwarmClient.hx index 639722c..e5d62fb 100644 --- a/src/com/smartfoxserver/v2/bitswarm/BitSwarmClient.hx +++ b/src/com/smartfoxserver/v2/bitswarm/BitSwarmClient.hx @@ -544,6 +544,8 @@ class BitSwarmClient extends EventDispatcher // We are out of time... connection failed:( else { + // Do not attempt to reconnect anymore + _attemptingReconnection = false; dispatchEvent(new BitSwarmEvent(BitSwarmEvent.DISCONNECT, {reason:ClientDisconnectionReason.UNKNOWN})); } }