Skip to content

Commit 393761a

Browse files
committed
Drop lock after clean
1 parent 7d10af4 commit 393761a

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

rewatch/src/main.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ use std::{io::Write, path::Path};
55

66
use rescript::{
77
build, cli, cmd, format,
8-
lock::{LockKind, get_lock_or_exit},
8+
lock::{LockKind, drop_lock, get_lock_or_exit},
99
watcher,
1010
};
1111

@@ -88,7 +88,10 @@ fn main() -> Result<()> {
8888
}
8989
cli::Command::Clean { folder } => {
9090
let _lock = get_lock_or_exit(LockKind::Build, &folder);
91-
build::clean::clean(Path::new(&folder as &str), show_progress, plain_output)
91+
let result = build::clean::clean(Path::new(&folder as &str), show_progress, plain_output);
92+
let _lock = drop_lock(LockKind::Build, &folder);
93+
94+
result
9295
}
9396
cli::Command::Format { stdin, check, files } => format::format(stdin, check, files),
9497
}

0 commit comments

Comments
 (0)