Skip to content

Commit

Permalink
fix: correct event subscription in watcher
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-berger committed Jul 31, 2024
1 parent 89d8952 commit 7bd18b1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions packages/watcher/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ async fn main() -> anyhow::Result<()> {

match subscribe_res {
Ok(_) => info!("WM exited successfully. Skipping watcher cleanup."),
Err(_) => {
info!("WM exitted unexpectedly. Running watcher cleanup.");
Err(err) => {
info!("Running watcher cleanup. WM exitted unexpectedly: {}", err);

let managed_windows = managed_handles
.into_iter()
Expand Down Expand Up @@ -75,7 +75,7 @@ async fn watch_managed_handles(
handles: &mut Vec<isize>,
) -> anyhow::Result<()> {
let subscription_message =
"subscribe -e window_managed window_unmanaged application_exiting";
"sub -e window_managed window_unmanaged application_exiting";

client
.send(&subscription_message)
Expand Down

0 comments on commit 7bd18b1

Please sign in to comment.