merge develop into master #20

Merged
michael-bailey merged 181 commits from develop into master 2023-12-01 21:48:28 +00:00
1 changed files with 5 additions and 1 deletions
Showing only changes of commit e0b65fb520 - Show all commits

View File

@ -126,10 +126,14 @@ impl<Out: 'static> IManager for NetworkManager<Out>
{
async fn run(self: &Arc<Self>) {
let lock = self.listener.lock().await;
select! {
val = lock.accept() => {
if let Ok((stream, _addr)) = val {
let _ = self.handle_connection(Arc::new(stream.into())).await;
let conn = self.clone();
tokio::spawn(async move {
let _ = conn.handle_connection(Arc::new(stream.into())).await;
});
}
}
}