Ensure peer threads are stopped on drop

This commit is contained in:
Mathias Hall-Andersen
2019-08-20 21:19:53 +02:00
parent f4da998812
commit 9cef264581
3 changed files with 158 additions and 101 deletions

View File

@@ -15,6 +15,8 @@ fn main() {
sodiumoxide::init().unwrap();
let mut router = router::Device::new(8);
let peer = router.new_peer();
{
let peer = router.new_peer();
}
loop {}
}