mirror of
https://github.com/launchbadge/sqlx.git
synced 2025-11-03 15:02:50 +00:00
(sqlite) do not drop notify mutex until after condvar is triggered (#2573)
Signed-off-by: Andrew Whitehead <cywolf@gmail.com>
This commit is contained in:
parent
1b7631eddc
commit
3fbc3a3ff2
@ -57,7 +57,8 @@ impl Notify {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn fire(&self) {
|
fn fire(&self) {
|
||||||
*self.mutex.lock().unwrap() = true;
|
let mut lock = self.mutex.lock().unwrap();
|
||||||
|
*lock = true;
|
||||||
self.condvar.notify_one();
|
self.condvar.notify_one();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user