mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
refactor(rust): tell Tauri to use our existing runtime (#8514)
Tauri needs a tokio runtime in order to spawn tasks. If we don't supply one, it will start its own runtime. Given that we already start a runtime, this is unnecessary.
This commit is contained in:
@@ -131,6 +131,8 @@ pub(crate) fn run(
|
||||
) -> Result<()> {
|
||||
// Needed for the deep link server
|
||||
let rt = tokio::runtime::Runtime::new().context("Couldn't start Tokio runtime")?;
|
||||
tauri::async_runtime::set(rt.handle().clone());
|
||||
|
||||
let _guard = rt.enter();
|
||||
|
||||
// Make sure we're single-instance
|
||||
|
||||
Reference in New Issue
Block a user