diff --git a/crates/radicle-signals/src/windows.rs b/crates/radicle-signals/src/windows.rs index 03f093fa6..9694061d8 100644 --- a/crates/radicle-signals/src/windows.rs +++ b/crates/radicle-signals/src/windows.rs @@ -10,7 +10,7 @@ use ::windows::core::BOOL; use crate::{Signal, already_installed}; -static NOTIFY: OnceLock> = OnceLock::new(); +static NOTIFY: OnceLock> = OnceLock::new(); /// Callback function, called by the system when a control signal is to be received. /// See . @@ -38,7 +38,7 @@ unsafe extern "system" fn handler(ctrltype: u32) -> BOOL { /// Install global signal handlers, with notifications sent to the given /// `notify` channel. -pub fn install(notify: mpsc::Sender) -> io::Result<()> { +pub fn install(notify: mpsc::SyncSender) -> io::Result<()> { if let Err(_) = NOTIFY.set(notify) { return Err(already_installed()); }