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(), );