This commit is contained in:
sxyazi 2024-01-22 08:17:19 +08:00
parent d0a98b549d
commit cffd2ae409
No known key found for this signature in database

View file

@ -54,7 +54,6 @@ impl Signals {
let tx = self.tx.clone(); let tx = self.tx.clone();
Ok(tokio::spawn(async move { Ok(tokio::spawn(async move {
loop {
while let Some(signal) = signals.next().await { while let Some(signal) = signals.next().await {
if BLOCKER.try_acquire().is_err() { if BLOCKER.try_acquire().is_err() {
continue; continue;
@ -70,7 +69,6 @@ impl Signals {
_ => {} _ => {}
} }
} }
}
})) }))
} }