mirror of
https://github.com/flibusta-apps/book_bot.git
synced 2025-12-06 15:35:35 +01:00
Fix
This commit is contained in:
@@ -220,14 +220,12 @@ impl BotsManager {
|
|||||||
loop {
|
loop {
|
||||||
manager.check().await;
|
manager.check().await;
|
||||||
|
|
||||||
for _ in 1..30 {
|
|
||||||
sleep(Duration::from_millis(50)).await;
|
|
||||||
|
|
||||||
if !running.load(Ordering::SeqCst) {
|
if !running.load(Ordering::SeqCst) {
|
||||||
manager.stop_all().await;
|
manager.stop_all().await;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
sleep(Duration::from_secs(30)).await;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user