2 Commits
1.3 ... 1.5

4 changed files with 9 additions and 5 deletions

View File

@ -1,5 +1,5 @@
#Fri, 13 Sep 2013 08:25:17 -0500 #Sun, 22 Sep 2013 14:58:43 -0500
name=timestamper-lib name=timestamper-lib
version=1.3 version=1.5
lib.local=true lib.local=true
build.number=10 build.number=1

View File

@ -153,7 +153,8 @@ public class JDBLabsWebTimelineSource extends TimelineSource {
requestContentType = JSON requestContentType = JSON
body = entryBody body = entryBody
response.success = { entryHashes.put(fullHash(entry), entry.id ?: 0) } response.success = { resp, json ->
entryHashes.put(fullHash(entry), json?.id ?: 0) }
} }
} }
} }

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();
} }