mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-10 22:52: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
|
@ -93,6 +93,7 @@ impl super::Service {
|
|||
|
||||
let request = Request::try_from(request)?;
|
||||
self.validate_url(request.url())?;
|
||||
self.server.check_running()?;
|
||||
|
||||
Ok(request)
|
||||
}
|
||||
|
|
|
@ -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