Skip to content

Commit

Permalink
Run HttpRemoteTask#sendUpdate in separate thread
Browse files Browse the repository at this point in the history
Sending update is potentially expensive operation
therefore it should be run from separate thread.
This fixes bug introduced by
613bd2f
  • Loading branch information
riteshvaryani authored and sopel39 committed Jan 28, 2022
1 parent 6993c78 commit 583fcab
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ private synchronized void triggerUpdate()
{
// synchronized so that needsUpdate is not cleared in sendUpdate before actual request is sent
needsUpdate.set(true);
sendUpdate();
scheduleUpdate();
}

private synchronized void sendUpdate()
Expand Down

0 comments on commit 583fcab

Please sign in to comment.