Skip to content
This repository was archived by the owner on Jun 3, 2025. It is now read-only.

Commit 696e42f

Browse files
author
Irene
committed
Add force saving events
1 parent 6f66438 commit 696e42f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/main/java/fi/helsinki/cs/tmc/cli/Application.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,11 @@ public static void main(String[] args) {
221221
app.run(args);
222222
// Because of EventSendBuffer
223223
TmcRequestProcessor.instance.shutdown();
224+
try {
225+
eventSendBuffer.saveNow(1000);
226+
} catch (Exception e) {
227+
logger.warn("Failed to save events: ", e.getStackTrace());
228+
}
224229
}
225230

226231
private boolean versionCheck() {

0 commit comments

Comments
 (0)