commit 53c7489217b6cda66c59646e19d38c675df2b44d
parent 0a73312c3d8299e4ecad166709694fe9278bffc1
Author: dm1try <me@dmitry.it>
Date: Fri, 14 Dec 2018 06:54:05 +0300
Ignore result on deregistering pty
Fixes #1897.
Diffstat:
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
@@ -9,6 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Fixed
- Fix color issue in ncurses programs by updating terminfo pairs from 0x10000 to 0x7FFF
+- Fix panic after quitting Alacritty on macOS
## Version 0.2.4
diff --git a/src/event_loop.rs b/src/event_loop.rs
@@ -426,7 +426,7 @@ impl<T> EventLoop<T>
// The evented instances are not dropped here so deregister them explicitly
// TODO: Is this still necessary?
let _ = self.poll.deregister(&self.rx);
- self.pty.deregister(&self.poll).unwrap();
+ let _ = self.pty.deregister(&self.poll);
(self, state)
})