I need close a window and open a new one programmatically.
Closing A and opening B works fine. Closing B and opening A causes some generic panic.
I've used tauri::async_runtime::spawn and ::spawn_blocking and std::thread::spawnand all panic in the same manner.
Both actions are called inside a listen_global callback. They are perfect inverse of each other and check for existence before trying to operate. Anything off top of your head could be a cause for a panic?