Fixed main returning prematurely if there is an errror in the message loop
This commit is contained in:
parent
74cb49edfa
commit
8d33f44988
|
@ -91,7 +91,9 @@ async fn main() -> anyhow::Result<()> {
|
||||||
titlebot: Titlebot::create(spotify_creds).await?,
|
titlebot: Titlebot::create(spotify_creds).await?,
|
||||||
};
|
};
|
||||||
|
|
||||||
message_loop(state).await?;
|
if let Err(e) = message_loop(state).await {
|
||||||
|
error!("Error in message loop: {}", e);
|
||||||
|
}
|
||||||
|
|
||||||
info!("Shutting down");
|
info!("Shutting down");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue