mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-16 05:36:50 +00:00
Fix shutdown signalling on startup.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
1 parent
46193de7e8
commit
53ab6742c8
2 files changed
+4
-5
No files matched your search
+1
-4
@@ -104,10 +104,7 @@ impl Server {
|
||||
}
|
||||
|
||||
pub fn signal(&self, sig: &'static str) -> Result {
|
||||
if let Err(e) = self.signal.send(sig) {
|
||||
return Err!("Failed to send signal: {e}");
|
||||
}
|
||||
|
||||
self.signal.send(sig).ok();
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user