bugfix: break when message is sent sucessfully

This commit is contained in:
Godmode Galactus 2024-05-15 17:46:12 +02:00
parent 4816f43bea
commit 0fc8947ac8
No known key found for this signature in database
GPG Key ID: 22DA4A30887FDA3C
2 changed files with 4 additions and 2 deletions

View File

@ -146,6 +146,7 @@ impl ConnectionManager {
match send_message(send_stream, message.clone()).await {
Ok(_) => {
log::debug!("Message sucessfully sent");
break;
}
Err(e) => {
log::error!(

View File

@ -43,7 +43,7 @@ pub enum ChannelMessage {
#[derive(Debug)]
pub struct QuicServer {
runtime: Runtime,
_runtime: Runtime,
data_channel_sender: UnboundedSender<ChannelMessage>,
}
@ -126,12 +126,13 @@ impl QuicServer {
}
}
}
log::error!("quic server dispatch task stopped");
});
}
Ok(QuicServer {
data_channel_sender,
runtime,
_runtime: runtime,
})
}