Fix clippy lint

This commit is contained in:
Alexandre Bury 2021-05-06 15:31:53 -07:00
parent 2065e1012c
commit 4d49b4c1d1

View File

@ -16,11 +16,9 @@ pub fn start_resize_thread(
// This thread will listen to SIGWINCH events and report them.
while resize_running.load(Ordering::Relaxed) {
// We know it will only contain SIGWINCH signals, so no need to check.
if signals.wait().count() > 0 {
if resize_sender.send(()).is_err() {
if signals.wait().count() > 0 && resize_sender.send(()).is_err() {
return;
}
}
}
});
}