minor fix in last commit

This commit is contained in:
Mike Dilger 2024-02-19 20:26:10 +13:00
parent dbf7313d2b
commit 04062b2267

View File

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