mirror of
https://github.com/tauri-apps/tauri.git
synced 2026-01-31 00:35:19 +01:00
Merge branch 'dev' into feat/on-new-window-config
This commit is contained in:
6
.changes/fix-no-watch-dev-server-kill.md
Normal file
6
.changes/fix-no-watch-dev-server-kill.md
Normal file
@@ -0,0 +1,6 @@
|
||||
---
|
||||
"tauri-cli": patch:bug
|
||||
"@tauri-apps/cli": patch:bug
|
||||
---
|
||||
|
||||
Wait for dev server to exit before exiting the CLI when the app is closed on `tauri dev --no-watch`.
|
||||
@@ -215,8 +215,8 @@ impl Interface for Rust {
|
||||
if options.no_watch {
|
||||
let (tx, rx) = sync_channel(1);
|
||||
self.run_dev(options, run_args, move |status, reason| {
|
||||
on_exit(status, reason);
|
||||
tx.send(()).unwrap();
|
||||
on_exit(status, reason)
|
||||
})?;
|
||||
|
||||
rx.recv().unwrap();
|
||||
|
||||
Reference in New Issue
Block a user