mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-24 09:27:38 +00:00
fix(service/sending): Avoid spawning restarted workers during shutdown
This commit is contained in:
1 parent
a0d9e71eac
commit
613bb1b2a8
1 file changed
+1
-1
@@ -175,7 +175,7 @@ impl crate::Service for Service {
|
||||
restarts.push(sleep(delay).map(move |()| shard));
|
||||
},
|
||||
Some(shard) = restarts.next() => {
|
||||
if !self.channels[shard].1.is_closed() {
|
||||
if !self.channels[shard].1.is_closed() && self.server.running() {
|
||||
started[shard] = Instant::now();
|
||||
self.spawn_sender(&mut senders, &mut shards, shard, true);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user