fix: spawn songbird processing the event to try to address deadlock issue

This commit is contained in:
2026-05-19 23:18:07 -04:00
parent 97acdac467
commit 8f433a065e

View File

@@ -478,7 +478,15 @@ async fn handle_events(command_router: Arc<CommandRouter>, state: State, mut sha
#[tracing::instrument(skip(command_router, state))]
async fn handle_event(command_router: Arc<CommandRouter>, state: State, event: Event) {
state.songbird.process(&event).await;
tokio::spawn({
let event = event.clone();
let songbird = state.songbird.clone();
async move {
songbird.process(&event).await;
}
})
.await
.unwrap();
match event {
Event::VoiceStateUpdate(voice_state_update) => {