Bug fix: the server would hang if there was an error with the config file
This commit is contained in:
@@ -85,9 +85,9 @@ async fn signal_select(send: watch::Sender<bool>) -> errors::Result {
|
|||||||
async fn main() -> errors::Result {
|
async fn main() -> errors::Result {
|
||||||
let (send, recv) = watch::channel(true);
|
let (send, recv) = watch::channel(true);
|
||||||
tokio::spawn(async move {
|
tokio::spawn(async move {
|
||||||
run(recv).await?;
|
signal_select(send).await?;
|
||||||
return Ok(()) as errors::Result;
|
return Ok(()) as errors::Result;
|
||||||
});
|
});
|
||||||
signal_select(send).await?;
|
run(recv).await?;
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user