From 35d931e49cbff0882f4cded421ee3948742bccec Mon Sep 17 00:00:00 2001 From: Federico Terzi Date: Thu, 12 Aug 2021 19:50:08 +0200 Subject: [PATCH] fix(core): fix layout watcher channel crashing on macOS and Windows --- espanso/src/cli/daemon/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/espanso/src/cli/daemon/mod.rs b/espanso/src/cli/daemon/mod.rs index 7355a69..a3499d5 100644 --- a/espanso/src/cli/daemon/mod.rs +++ b/espanso/src/cli/daemon/mod.rs @@ -94,8 +94,8 @@ fn daemon_main(args: CliModuleArgs) -> i32 { watcher::initialize_and_spawn(&paths.config, watcher_notify) .expect("unable to initialize config watcher thread"); - let (keyboard_layout_watcher_notify, keyboard_layout_watcher_signal) = unbounded::<()>(); - keyboard_layout_watcher::initialize_and_spawn(keyboard_layout_watcher_notify) + let (_keyboard_layout_watcher_notify, keyboard_layout_watcher_signal) = unbounded::<()>(); + keyboard_layout_watcher::initialize_and_spawn(_keyboard_layout_watcher_notify.clone()) .expect("unable to initialize keyboard layout watcher thread"); let config_store =