From fc821925b121ed50e349ea40ffdf02d9e8aa093a Mon Sep 17 00:00:00 2001 From: Quanwei Zhou Date: Mon, 23 Sep 2024 14:54:34 +0800 Subject: [PATCH] server: fix server exit once a accept failed If the Accept error occurs, an error can be output to ensure that the subsequent connect can be accepted normally. Fixes: #239 Signed-off-by: Quanwei Zhou --- src/sync/server.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sync/server.rs b/src/sync/server.rs index b562996a..dafe56c4 100644 --- a/src/sync/server.rs +++ b/src/sync/server.rs @@ -369,7 +369,7 @@ impl Server { } Err(e) => { error!("listener accept got {:?}", e); - break; + continue; } };