From 04062b22670d1259ddbbdaf912d25276f259641f Mon Sep 17 00:00:00 2001 From: Mike Dilger Date: Mon, 19 Feb 2024 20:26:10 +1300 Subject: [PATCH] minor fix in last commit --- src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 4b0a4f7..7fbc8c7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -405,7 +405,7 @@ impl WebSocketService { log::error!("{}: msg was {}", self.peer, msg); let reply = NostrReply::Notice(format!("error: {}", e)); self.websocket.send(Message::text(reply.as_json())).await?; - if self.errcount > 3 { + if self.errcount >= 3 { let reply = NostrReply::Notice( "Too many errors (3). Banned for 60 seconds.".into(), );