Explorar o código

net/acceptor: Don't close listener loop on unhandled errors anymore

parazyd %!s(int64=2) %!d(string=hai) anos
pai
achega
dffcce29a3
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      src/net/acceptor.rs

+ 3 - 0
src/net/acceptor.rs

@@ -205,11 +205,14 @@ impl Acceptor {
                         target: "net::acceptor::run_accept_loop()",
                         "[P2P] Unhandled listener.next() error: {}", e,
                     );
+                    /*
                     error!(
                         target: "net::acceptor::run_accept_loop()",
                         "[P2P] Closing listener loop"
                     );
                     return Err(e.into())
+                    */
+                    continue
                 }
             }
         }