Skip to content

Commit 1cb0c1d

Browse files
committed
fix
1 parent b462a9e commit 1cb0c1d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugins/notification/src/handler.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ impl NotificationHandler {
7777
}
7878
hypr_detect::DetectEvent::MicStopped => {
7979
use tauri_plugin_listener::ListenerPluginExt;
80-
app_handle.pause_session();
80+
tokio::spawn(async move {
81+
app_handle.pause_session();
82+
});
8183
}
8284
_ => {}
8385
}

0 commit comments

Comments
 (0)