[bug] AppHandle::restart
may exit process without waiting for RunEvent::Exit
event emit to plugins / app.
#12310
Labels
Describe the bug
AppHandle::restart
may exit process without waiting forRunEvent::Exit
event emit to plugins / app.This is upstream / super issue for:
app_handle.restart()
plugins-workspace#2256Reproduction
Add log on
RunEvent::Exit
, make do something a little slow (like file system operation, or just sleep), and button to callrestart()
.mini app based on npx tauri init. (removing lib crate)
main.rs
index.html
tauri.conf.json
Expected behavior
tauri::RunEvent::Exit
should always be calledFull
tauri info
outputStack trace
No response
Additional context
I'm looking for fix this issue with waiting for exit event in restart.
The text was updated successfully, but these errors were encountered: