Skip to content

Commit

Permalink
Merge pull request #66 from codenotary/fix/heartbeat-timer
Browse files Browse the repository at this point in the history
fix: initialize sessionHeartBeatTimer as daemon.
  • Loading branch information
ostafen authored Aug 12, 2024
2 parents d7c8357 + 45efd15 commit 2ad8e90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/io/codenotary/immudb4j/ImmuClient.java
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public synchronized void openSession(String database, String username, String pa

session = new Session(resp.getSessionID(), database);

sessionHeartBeat = new Timer();
sessionHeartBeat = new Timer(true);

sessionHeartBeat.schedule(new TimerTask() {
@Override
Expand Down

0 comments on commit 2ad8e90

Please sign in to comment.