Abort the P2P meta task when dropped

This should cause full cleanup of all Tributary async tasks, since the machine
already cleans itself up on drop.
This commit is contained in:
Luke Parker
2023-10-14 20:07:12 -04:00
parent e4adaa8947
commit 62e1d63f47
3 changed files with 26 additions and 15 deletions

View File

@@ -176,7 +176,7 @@ impl TestNetwork {
TestBlock { id: 1u32.to_le_bytes(), valid: Ok(()) },
)
.await;
tokio::task::spawn(machine.run());
tokio::spawn(machine.run());
write.push((messages, synced_block, synced_block_result));
}
}