mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-04-01 10:01:07 +02:00
fix(cli): dev watcher incorrectly killing process on multiple file write (#4684)
This commit is contained in:
committed by
GitHub
parent
e903dfe762
commit
47fab6809a
6
.changes/fix-watcher.md
Normal file
6
.changes/fix-watcher.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"cli.rs": patch
|
||||
"cli.js": patch
|
||||
---
|
||||
|
||||
Fixes dev watcher incorrectly exiting the CLI when sequential file updates are detected.
|
||||
@@ -358,7 +358,14 @@ impl Rust {
|
||||
|
||||
app_child_.lock().unwrap().replace(app_child);
|
||||
} else {
|
||||
on_exit(status, reason);
|
||||
on_exit(
|
||||
status,
|
||||
if manually_killed_app_.load(Ordering::Relaxed) {
|
||||
ExitReason::TriggeredKill
|
||||
} else {
|
||||
reason
|
||||
},
|
||||
);
|
||||
}
|
||||
})?;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user