Skip to content

Commit 05e9d34

Browse files
committed
Allow WouldBlock
1 parent 692db83 commit 05e9d34

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lightning-net/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ where
455455
self.peer_manager.process_events()
456456
}
457457
Err(e) => match e.kind() {
458-
TimedOut | Interrupted => {
458+
TimedOut | Interrupted | WouldBlock => {
459459
// Acceptable error; retry
460460
}
461461
_ => {
@@ -618,7 +618,7 @@ where
618618
}
619619
}
620620
Err(e) => match e.kind() {
621-
TimedOut | Interrupted => {
621+
TimedOut | Interrupted | WouldBlock => {
622622
// Retry the write in the next loop
623623
// iteration if we received any of the above
624624
// errors. It would be nice to additionally

0 commit comments

Comments
 (0)