(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:
Andrew Whitehead 2023-06-30 16:48:52 -07:00 committed by GitHub
parent 1b7631eddc
commit 3fbc3a3ff2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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();
}
}