diff --git a/plugins/hg4idea/src/org/zmlx/hg4idea/HgVcs.java b/plugins/hg4idea/src/org/zmlx/hg4idea/HgVcs.java index d2537775f9db..92f8c79e66ec 100644 --- a/plugins/hg4idea/src/org/zmlx/hg4idea/HgVcs.java +++ b/plugins/hg4idea/src/org/zmlx/hg4idea/HgVcs.java @@ -273,12 +273,13 @@ public class HgVcs extends AbstractVcs { // updaters and listeners final HgRemoteStatusUpdater remoteUpdater = new HgRemoteStatusUpdater(this, incomingChangesStatus, outgoingChangesStatus, projectSettings); + int checkIntervalSeconds = HgGlobalSettings.getIncomingCheckIntervalSeconds(); changesUpdaterScheduledFuture = JobScheduler.getScheduler().scheduleWithFixedDelay( new Runnable() { public void run() { remoteUpdater.update(myProject); } - }, 0, HgGlobalSettings.getIncomingCheckIntervalSeconds(), TimeUnit.SECONDS); + }, checkIntervalSeconds, checkIntervalSeconds, TimeUnit.SECONDS); messageBusConnection = myProject.getMessageBus().connect(); messageBusConnection.subscribe(REMOTE_TOPIC, remoteUpdater);