Skip to content

Commit 218cbf5

Browse files
committed
Fix hanged updates (due to hang of background runner drop)
1 parent c9ad2ae commit 218cbf5

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/interpreter/background_runner.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ impl BackgroundRunner {
5757
let was_force = force.swap(false, atomic::Ordering::SeqCst);
5858
callback(was_force);
5959

60+
if *exit.lock().unwrap() {
61+
break;
62+
}
63+
6064
let _ = cv.1.wait_timeout(cv.0.lock().unwrap(), interval).unwrap();
6165
if *exit.lock().unwrap() {
6266
break;

0 commit comments

Comments
 (0)