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:
1 parent
9e493fa0ef
commit
afe72f3bc5
1 file changed
+1
-1
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user