mirror of
https://gitlab.com/veloren/veloren.git
synced 2024-08-30 18:12:32 +00:00
Merge branch 'xMAC94x/small-fixes' into 'master'
add more tracing and drop lock earlier See merge request veloren/veloren!1435
This commit is contained in:
commit
2246e8b860
@ -305,6 +305,7 @@ impl Scheduler {
|
||||
async fn scheduler_shutdown_mgr(&self, a2s_scheduler_shutdown_r: oneshot::Receiver<()>) {
|
||||
trace!("Start scheduler_shutdown_mgr");
|
||||
a2s_scheduler_shutdown_r.await.unwrap();
|
||||
info!("Shutdown of scheduler requested");
|
||||
self.closed.store(true, Ordering::Relaxed);
|
||||
debug!("Shutting down all BParticipants gracefully");
|
||||
let mut participants = self.participants.lock().await;
|
||||
@ -321,6 +322,7 @@ impl Scheduler {
|
||||
(pid, finished_receiver)
|
||||
})
|
||||
.collect::<Vec<_>>();
|
||||
drop(participants);
|
||||
debug!("Wait for partiticipants to be shut down");
|
||||
for (pid, recv) in waitings {
|
||||
if let Err(e) = recv.await {
|
||||
|
Loading…
Reference in New Issue
Block a user