Don't reschedule a canceled timer
git-svn-id: http://google-refine.googlecode.com/svn/trunk@2236 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
parent
585d3fce3b
commit
131ff81c0d
@ -90,9 +90,11 @@ public class RefineServlet extends Butterfly {
|
|||||||
try {
|
try {
|
||||||
ProjectManager.singleton.save(false); // quick, potentially incomplete save
|
ProjectManager.singleton.save(false); // quick, potentially incomplete save
|
||||||
} finally {
|
} finally {
|
||||||
_timer.schedule(new AutoSaveTimerTask(), s_autoSavePeriod);
|
if (_timer != null) {
|
||||||
// we don't use scheduleAtFixedRate because that might result in
|
_timer.schedule(new AutoSaveTimerTask(), s_autoSavePeriod);
|
||||||
// bunched up events when the computer is put in sleep mode
|
// we don't use scheduleAtFixedRate because that might result in
|
||||||
|
// bunched up events when the computer is put in sleep mode
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user