Skip to content

Commit

Permalink
trigger delayed closing of changesets also on manual upload (if anyth…
Browse files Browse the repository at this point in the history
…ing was uploaded)
  • Loading branch information
westnordost committed Oct 1, 2017
1 parent 1305e72 commit 6632f84
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,6 @@ public void triggerAutoUpload()
if(!isAllowedByPreference()) return;
if(!isConnected) return;
questController.upload();
triggerDelayedClosingOfChangesets();
}

private void triggerDelayedClosingOfChangesets()
{
ChangesetAutoCloserJob.scheduleJob();

}

private boolean updateConnectionState()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,12 @@ public synchronized void upload(AtomicBoolean cancelState)
}

closeOpenChangesets();

if(commits > 0)
{
// changesets are closed delayed after X minutes of inactivity
ChangesetAutoCloserJob.scheduleJob();
}
}

private void cleanUp()
Expand Down

0 comments on commit 6632f84

Please sign in to comment.