mirror of
https://github.com/zellij-org/zellij.git
synced 2024-11-25 06:07:27 +03:00
fix(tests): graceful shutdown for async tasks
This commit is contained in:
parent
1c8ebcc53a
commit
58fa259ab3
@ -566,8 +566,9 @@ impl WasmBridge {
|
||||
task::spawn({
|
||||
let mut updates = updates.clone();
|
||||
let senders = self.senders.clone();
|
||||
let _s = shutdown_sender.clone();
|
||||
let s = shutdown_sender.clone();
|
||||
async move {
|
||||
let _s = s;
|
||||
for (pid, cid, event) in updates.drain(..) {
|
||||
for (plugin_id, client_id, running_plugin, subscriptions) in &plugins_to_update
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user