Compare commits
2 commits
5c607262f7
...
f0a1d43e96
Author | SHA1 | Date | |
---|---|---|---|
f0a1d43e96 | |||
08d2377404 |
1 changed files with 1 additions and 0 deletions
|
@ -36,6 +36,7 @@ pub fn watch_file(path: PathBuf, recipient: Recipient<FileUpdated>) -> Result<Ar
|
||||||
actix_rt::task::spawn_blocking(move || {
|
actix_rt::task::spawn_blocking(move || {
|
||||||
loop {
|
loop {
|
||||||
if thread_shutdown.load(Ordering::Relaxed) {
|
if thread_shutdown.load(Ordering::Relaxed) {
|
||||||
|
drop(handler);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
for result in rx.try_iter() {
|
for result in rx.try_iter() {
|
||||||
|
|
Loading…
Reference in a new issue