Bug fix: the server would hang if there was an error with the config file

This commit is contained in:
int 80h
2021-12-30 17:28:46 -05:00
parent 0f07e7c2be
commit 2eabc3e893

View File

@@ -85,9 +85,9 @@ async fn signal_select(send: watch::Sender<bool>) -> errors::Result {
async fn main() -> errors::Result {
let (send, recv) = watch::channel(true);
tokio::spawn(async move {
run(recv).await?;
signal_select(send).await?;
return Ok(()) as errors::Result;
});
signal_select(send).await?;
run(recv).await?;
Ok(())
}