mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
hotfix a lock
This commit is contained in:
parent
47e10c3b25
commit
b9cb79918d
@ -281,6 +281,7 @@ impl Scheduler {
|
|||||||
.send(finished_sender)
|
.send(finished_sender)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
drop(pi);
|
drop(pi);
|
||||||
|
trace!("dropped bparticipant, waiting for finish");
|
||||||
let e = finished_receiver.await.unwrap();
|
let e = finished_receiver.await.unwrap();
|
||||||
return_once_successful_shutdown.send(e).unwrap();
|
return_once_successful_shutdown.send(e).unwrap();
|
||||||
} else {
|
} else {
|
||||||
@ -561,6 +562,8 @@ impl Scheduler {
|
|||||||
s2b_create_channel_s: s2b_create_channel_s.clone(),
|
s2b_create_channel_s: s2b_create_channel_s.clone(),
|
||||||
s2b_shutdown_bparticipant_s: Some(s2b_shutdown_bparticipant_s),
|
s2b_shutdown_bparticipant_s: Some(s2b_shutdown_bparticipant_s),
|
||||||
});
|
});
|
||||||
|
drop(participants);
|
||||||
|
trace!("dropped participants lock");
|
||||||
pool.spawn_ok(
|
pool.spawn_ok(
|
||||||
bparticipant
|
bparticipant
|
||||||
.run(participant_channels.b2s_prio_statistic_s)
|
.run(participant_channels.b2s_prio_statistic_s)
|
||||||
|
Loading…
Reference in New Issue
Block a user