wezterm: fix occasional hang when initiating a mux connection

I don't really like this as a solution, however: I'd rather
spend time transitioning towards async IO for this instead of
troubleshooting further here.
This commit is contained in:
Wez Furlong committed 2020-06-06 11:44:22 -07:00
1 parent 9e493fa0ef
commit afe72f3bc5
1 file changed
+1 -1
+1 -1
View File
@@ -131,7 +131,7 @@ impl AsPollFd for UnixStream {
}
pub fn poll_for_read(pfd: &mut [pollfd]) {
if let Err(e) = poll(pfd, None) {
if let Err(e) = poll(pfd, Some(std::time::Duration::from_millis(1000))) {
log::error!("poll failed for {}", e);
}
}