changed scheduleAtFixedRate() to scheduleWithFixedDelay() because the former is bad for hibernation

This commit is contained in:
Alexey Kudravtsev
2016-01-20 12:55:28 +03:00
parent e31214bac0
commit e7047ffafe
@@ -1,5 +1,5 @@
/*
* Copyright 2000-2015 JetBrains s.r.o.
* Copyright 2000-2016 JetBrains s.r.o.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -342,7 +342,7 @@ public class BuildManager implements Disposable {
}
});
JobScheduler.getScheduler().scheduleAtFixedRate(new Runnable() {
JobScheduler.getScheduler().scheduleWithFixedDelay(new Runnable() {
@Override
public void run() {
runCommand(myGCTask);