diff --git a/lib/hk-util.js b/lib/hk-util.js index cb4c9c7d7..4be22239e 100644 --- a/lib/hk-util.js +++ b/lib/hk-util.js @@ -804,7 +804,7 @@ const handleGetHistoryRange = function (Env, Server, seq, userId, parsed) { if (hash === untilHash || untilHash === 'NONE') { found = true; } let then = hash === oldestKnownHash ? abort : readMore; if (found) { - Server.send(userId, [0, HISTORY_KEEPER_ID, 'MSG', userId, + return void Server.send(userId, [0, HISTORY_KEEPER_ID, 'MSG', userId, JSON.stringify(['HISTORY_RANGE', txid, parsed])], then); } return void readMore();