mirror of
https://github.com/mikedilger/chorus.git
synced 2026-08-01 07:21:39 +00:00
minor fix in last commit
This commit is contained in:
parent
dbf7313d2b
commit
04062b2267
@ -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(),
|
||||
);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user