Skip to content
This repository has been archived by the owner on Jan 2, 2021. It is now read-only.

Commit

Permalink
Fixed issue where multiple event folders were being created
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinmulligan committed Mar 18, 2016
1 parent 9909e6f commit aa4a4c2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -96,8 +96,10 @@ public void triggerWarning() {
if(newest != null) {
bufferLock.lock();
lastWarningTime = newest.getCreatedAt();
activeWriter = new DiskWriter(oldest.getCreatedAt(), context);
activeWriter.start();
if(!activeWarning) {
activeWriter = new DiskWriter(oldest.getCreatedAt(), context);
activeWriter.start();
}
activeWarning = true;
bufferLock.unlock();
}
Expand Down

0 comments on commit aa4a4c2

Please sign in to comment.