From 96cdf2029f5ea5543068af9023aeb4a9a203412b Mon Sep 17 00:00:00 2001 From: Thomas Zarebczan Date: Fri, 15 Jun 2018 19:16:23 -0400 Subject: [PATCH] Fix pending publishes This fixes an issue where claim_list_mine is called even after a claim is confirmed. Also updating time check interval to 30s from 10s. --- src/renderer/redux/actions/publish.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/renderer/redux/actions/publish.js b/src/renderer/redux/actions/publish.js index e8c7ff9c1..c03011132 100644 --- a/src/renderer/redux/actions/publish.js +++ b/src/renderer/redux/actions/publish.js @@ -281,7 +281,7 @@ export const doCheckPendingPublishes = () => (dispatch: Dispatch, getState: GetS dispatch(batchActions(...actions)); - if (!Object.keys(pendingPublishes).length) { + if (!Object.keys(pendingPublishMap).length) { clearInterval(publishCheckInterval); } }); @@ -291,6 +291,6 @@ export const doCheckPendingPublishes = () => (dispatch: Dispatch, getState: GetS checkFileList(); publishCheckInterval = setInterval(() => { checkFileList(); - }, 10000); + }, 30000); } };