fixed issue causing it not to exit on disconnect
Signed-off-by: Nickiel12 <nickiel@nickiel.net>
This commit is contained in:
parent
04ec4fff8f
commit
d8def332bf
1 changed files with 7 additions and 2 deletions
|
@ -259,6 +259,7 @@ async fn main() {
|
|||
}
|
||||
};
|
||||
}
|
||||
info!("Closing send_rtp messages thread");
|
||||
});
|
||||
|
||||
info!("starting webrtc connection kickoff");
|
||||
|
@ -287,12 +288,16 @@ async fn main() {
|
|||
info!("Event Loop cancelled flag caught");
|
||||
break;
|
||||
}
|
||||
Ok(msg) = app_receiver.recv() => {
|
||||
val = app_receiver.recv() => {
|
||||
if val.is_err() {
|
||||
break;
|
||||
}
|
||||
|
||||
if to_quit.load(Ordering::SeqCst) {
|
||||
info!("ToQuit set, breaking app_receiver set");
|
||||
break;
|
||||
}
|
||||
match msg {
|
||||
match val.unwrap() {
|
||||
ApplicationMessage::ConnectionSupportsWebRTC(_) => {},
|
||||
ApplicationMessage::ConnectionSupportsWebRTCRequest => {
|
||||
if let Err(e) = app_sender.send(ApplicationMessage::ConnectionSupportsWebRTC(do_webrtc)).await {
|
||||
|
|
Loading…
Reference in a new issue