From 94afe42853a8d1affb32e69f048a9d3b47c1a880 Mon Sep 17 00:00:00 2001 From: Niko Date: Mon, 7 Oct 2024 23:40:37 -0600 Subject: [PATCH] Actually register handler for RtpPacket event --- scripty_audio_handler/src/connect.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripty_audio_handler/src/connect.rs b/scripty_audio_handler/src/connect.rs index 2b9a6fb..cb8098e 100644 --- a/scripty_audio_handler/src/connect.rs +++ b/scripty_audio_handler/src/connect.rs @@ -152,7 +152,8 @@ pub async fn connect_to_vc( call.add_global_event(Event::Core(CoreEvent::ClientDisconnect), handler.clone()); call.add_global_event(Event::Core(CoreEvent::DriverConnect), handler.clone()); call.add_global_event(Event::Core(CoreEvent::DriverDisconnect), handler.clone()); - call.add_global_event(Event::Core(CoreEvent::DriverReconnect), handler); + call.add_global_event(Event::Core(CoreEvent::DriverReconnect), handler.clone()); + call.add_global_event(Event::Core(CoreEvent::RtpPacket), handler); // spawn background tasks to automatically leave the call after the specified time period let (tx, rx) = tokio::sync::oneshot::channel::<()>();