Driver: Fix noisy errors, UDP message send failure spam.

Closes #26.

This will also prevent a full reconnect failure from endlessly spamming attempts and error logs. I'll follow this up by looking into decent reconnection strategies, although sadly these won't be configurable until the next semver break due to an oversight on my part.
This commit is contained in:
Kyle Simpson
2021-01-17 20:12:55 +00:00
parent 12776fc6f8
commit dcb6ad97b2
3 changed files with 23 additions and 9 deletions

View File

@@ -36,7 +36,11 @@ pub(crate) async fn runner(udp_msg_rx: Receiver<UdpTxMessage>, ssrc: u32, udp_tx
error!("Fatal UDP packet send error: {:?}.", e);
break;
},
Ok(Err(_)) | Ok(Ok(Poison)) => {
Ok(Err(e)) => {
error!("Fatal UDP packet receive error: {:?}.", e);
break;
},
Ok(Ok(Poison)) => {
break;
},
}