mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
Make tests pass
This commit is contained in:
parent
f4b5eef5fb
commit
b2efc56adc
1 changed files with 7 additions and 1 deletions
|
@ -5,6 +5,7 @@ use std::{
|
|||
atomic::{AtomicBool, Ordering},
|
||||
Arc,
|
||||
},
|
||||
time::Duration,
|
||||
};
|
||||
|
||||
use bitcode::{Decode, Encode};
|
||||
|
@ -429,9 +430,14 @@ impl ConnectionManager {
|
|||
let ev = ev.expect("channel to not be closed");
|
||||
self.handle_internal_event(ev).await;
|
||||
}
|
||||
|
||||
// Check if we need to stop periodically.
|
||||
_ = tokio::time::sleep(Duration::from_millis(1000)) => {}
|
||||
}
|
||||
}
|
||||
|
||||
debug!("Closing endpoint");
|
||||
self.endpoint
|
||||
.close(0u32.into(), b"peer decided to disconnect");
|
||||
}
|
||||
|
||||
pub(crate) fn start(self) -> Result<(), TangledInitError> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue