mirror of
https://github.com/launchbadge/sqlx.git
synced 2026-03-19 08:39:44 +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:
@@ -57,7 +57,8 @@ impl Notify {
|
||||
}
|
||||
|
||||
fn fire(&self) {
|
||||
*self.mutex.lock().unwrap() = true;
|
||||
let mut lock = self.mutex.lock().unwrap();
|
||||
*lock = true;
|
||||
self.condvar.notify_one();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user