From 0db102b9ba15b5e198d79267f9495d96f1f9d25c Mon Sep 17 00:00:00 2001 From: lz1998 <875543533@qq.com> Date: Sat, 2 Jul 2022 00:08:24 +0800 Subject: [PATCH] fix auto_reconnect --- ricq/src/ext/reconnect.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ricq/src/ext/reconnect.rs b/ricq/src/ext/reconnect.rs index 9a9d5e92..d871c8e4 100644 --- a/ricq/src/ext/reconnect.rs +++ b/ricq/src/ext/reconnect.rs @@ -78,7 +78,8 @@ pub async fn auto_reconnect( tokio::task::yield_now().await; // 等一下,确保连上了 if let Err(err) = fast_login(&client, &credential).await { // token 可能过期了 - tracing::error!("failed to fast_login: {}, break!", err); + tracing::error!("failed to fast_login: {}", err); + client.stop(NetworkStatus::NetworkOffline); count += 1; if count > max { tracing::error!("reconnect_count: {}, break!", count);