From 118336d76d152da457c6d473ebd296ca8b54805a Mon Sep 17 00:00:00 2001 From: zsw Date: Fri, 20 Dec 2024 14:17:31 +0800 Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E8=BF=9E=E5=BB=B6=E8=BF=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/im/SocketClient.dart | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/im/SocketClient.dart b/lib/im/SocketClient.dart index ee04f98c..8a1686e2 100644 --- a/lib/im/SocketClient.dart +++ b/lib/im/SocketClient.dart @@ -149,7 +149,9 @@ class SocketClient { reconnect() { dispose(); - connect(); + Future.delayed(Duration(milliseconds: 3000), () { + connect(); + }); } Map callbacks = {};