Skip to content
Snippets Groups Projects
Commit d586e595 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

[fix] Ban mechanism was broken confusion between milliseconds and seconds

parent 07ca679b
Branches
Tags
No related merge requests found
...@@ -99,7 +99,7 @@ export class WS2PServerMessageHandler implements WS2PMessageHandler { ...@@ -99,7 +99,7 @@ export class WS2PServerMessageHandler implements WS2PMessageHandler {
this.errors[documentHash].pubkeys[c.pubkey] = true this.errors[documentHash].pubkeys[c.pubkey] = true
setTimeout(() => { setTimeout(() => {
delete this.errors[documentHash] delete this.errors[documentHash]
}, WS2PConstants.ERROR_RECALL_DURATION_IN_SECONDS) }, 1000 * WS2PConstants.ERROR_RECALL_DURATION_IN_SECONDS)
} }
this.server.logger.warn(e) this.server.logger.warn(e)
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment