mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 20:29:23 +00:00
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:
@@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user