Fix shutdown signalling on startup.
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
@@ -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