Skip to content

Commit

Permalink
Merge pull request #941 from josepfo/fix/booting-up-screen-taking-too…
Browse files Browse the repository at this point in the history
…-long

LAM-846 Fix booting up screen taking too long
  • Loading branch information
RafaelTaranto authored May 10, 2023
2 parents 35d0c1e + 9621064 commit 995a105
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/brain.js
Original file line number Diff line number Diff line change
Expand Up @@ -221,11 +221,11 @@ Brain.prototype.traderRun = function traderRun () {
* "native" GraphQL polling mechanism.
*/
this.pollHandle = setVariableInterval(() => {
if (this.state === 'networkDown') this.trader.clearConfigVersion()
return this.trader.poll()
},
ACTIVE_POLL_INTERVAL,
res => res ? ACTIVE_POLL_INTERVAL : IDLE_POLL_INTERVAL
if (this.state === 'networkDown') this.trader.clearConfigVersion()
return this.trader.poll()
},
ACTIVE_POLL_INTERVAL,
res => (res || this.networkDown) ? ACTIVE_POLL_INTERVAL : IDLE_POLL_INTERVAL
)

this.networkHeartbeat()
Expand Down

0 comments on commit 995a105

Please sign in to comment.