fix: exit the program to trigger a restart when the gateway closes

This commit is contained in:
2026-04-16 01:51:34 -04:00
parent dbcc155c4c
commit 784ec5e867

View File

@@ -340,6 +340,10 @@ async fn handle_events(command_router: Arc<CommandRouter>, state: State, mut sha
Ok(event) => { Ok(event) => {
handle_event(command_router.clone(), state.clone(), event).await; handle_event(command_router.clone(), state.clone(), event).await;
} }
Err(twilight_gateway::error::Event::GatewayClose(frame_option)) => {
tracing::warn!(?frame_option);
return;
}
Err(error) => { Err(error) => {
tracing::error!(?error); tracing::error!(?error);
} }