mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-10 19:02:50 +02:00
additional interruption points to hasten shutdown
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
03f2ac9caf
commit
e5a1309583
4 changed files with 11 additions and 3 deletions
|
@ -105,7 +105,8 @@ impl Service {
|
|||
.get(id)
|
||||
.map(|(_, receiver)| receiver.clone())
|
||||
.expect("Missing channel for sender worker");
|
||||
loop {
|
||||
|
||||
while !receiver.is_closed() {
|
||||
tokio::select! {
|
||||
Some(response) = futures.next() => {
|
||||
self.handle_response(response, futures, statuses).await;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue