Skip to content

Commit

Permalink
fix auto_reconnect
Browse files Browse the repository at this point in the history
  • Loading branch information
lz1998 committed Jul 1, 2022
1 parent b647d46 commit 0db102b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ricq/src/ext/reconnect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ pub async fn auto_reconnect<C, S>(
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);
Expand Down

0 comments on commit 0db102b

Please sign in to comment.