Skip to content

Commit

Permalink
Actually register handler for RtpPacket event
Browse files Browse the repository at this point in the history
  • Loading branch information
tazz4843 committed Oct 8, 2024
1 parent 551899f commit 94afe42
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripty_audio_handler/src/connect.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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::<()>();
Expand Down

0 comments on commit 94afe42

Please sign in to comment.