From 2a7ebe669616f29357a80bd55f3855aef5edfccb Mon Sep 17 00:00:00 2001 From: Ryan Tharp Date: Mon, 30 Mar 2020 23:29:53 -0700 Subject: [PATCH] don't say it's sent when it's not --- js/modules/loki_message_api.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/js/modules/loki_message_api.js b/js/modules/loki_message_api.js index a26757159..71a493b47 100644 --- a/js/modules/loki_message_api.js +++ b/js/modules/loki_message_api.js @@ -206,6 +206,18 @@ class LokiMessageAPI { targetNode ); + // do not return true if we get false here... + if (result === false) { + log.warn( + `loki_message:::_sendToNode - Got false from ${targetNode.ip}:${ + targetNode.port + }` + ); + successiveFailures += 1; + // eslint-disable-next-line no-continue + continue; + } + // Make sure we aren't doing too much PoW const currentDifficulty = window.storage.get('PoWDifficulty', null); if (