Version 1.4: SyncTarget syncOnExit property is meaningful now.

This commit is contained in:
Jonathan Bernard 2013-09-13 09:24:44 -05:00
parent 68ce5bb272
commit 4992d7cac9
3 changed files with 7 additions and 4 deletions

View File

@ -1,5 +1,5 @@
#Fri, 13 Sep 2013 08:25:17 -0500 #Fri, 13 Sep 2013 09:24:08 -0500
name=timestamper-lib name=timestamper-lib
version=1.3 version=1.4
lib.local=true lib.local=true
build.number=10 build.number=1

View File

@ -99,7 +99,10 @@ public class SyncTarget {
return syncPerformed; return syncPerformed;
} }
public void shutdown() { public void shutdown() throws IOException {
// TODO: move this onto the timer thread?
if (syncOnExit) sync();
syncTimer.cancel(); syncTimer.cancel();
syncTimer.purge(); syncTimer.purge();
} }