diff --git a/src/inotify.rs b/src/inotify.rs index 3a4c4c9f..5277e0ab 100644 --- a/src/inotify.rs +++ b/src/inotify.rs @@ -416,10 +416,11 @@ impl EventLoop { let cookie = rename_event.tracker().unwrap(); // unwrap is safe because rename_event is always set with some cookie thread::spawn(move || { thread::sleep(Duration::from_millis(10)); // wait up to 10 ms for a subsequent event - event_loop_tx - .send(EventLoopMsg::RenameTimeout(cookie)) - .unwrap(); - waker.wake().unwrap(); + + // An error here means the other end of the channel was closed, a thing that can + // happen normally. + let _ = event_loop_tx.send(EventLoopMsg::RenameTimeout(cookie)); + let _ = waker.wake(); }); } }