mirror of
https://git.asonix.dog/asonix/background-jobs.git
synced 2024-11-22 03:51:00 +00:00
actix: Add logs around drop logic
This commit is contained in:
parent
b641c29885
commit
d8eb52d1f7
1 changed files with 3 additions and 0 deletions
|
@ -244,6 +244,7 @@ struct DropNotifier {
|
|||
|
||||
impl Drop for DropNotifier {
|
||||
fn drop(&mut self) {
|
||||
tracing::warn!("DropNotifier dropped - Arbiter tearing down");
|
||||
self.notify.notify_waiters();
|
||||
}
|
||||
}
|
||||
|
@ -270,9 +271,11 @@ impl Deref for ArbiterDropper {
|
|||
|
||||
impl Drop for ArbiterDropper {
|
||||
fn drop(&mut self) {
|
||||
tracing::warn!("Stopping and joining arbiter");
|
||||
let arbiter = self.arbiter.take().unwrap();
|
||||
arbiter.stop();
|
||||
let _ = arbiter.join();
|
||||
tracing::warn!("Joined");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue