Skip to content

Commit

Permalink
Fix a bug when calling Eventgroup.start() many times.
Browse files Browse the repository at this point in the history
  • Loading branch information
peter-lawrey committed Aug 18, 2015
1 parent a8fb8f0 commit 069fa49
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/main/java/net/openhft/chronicle/threads/EventGroup.java
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,11 @@ public void addHandler(@NotNull EventHandler handler) {

@Override
public void start() {
core.start();
monitor.start();
monitor.addHandler(new LoopBlockMonitor());
if (!core.isAlive()) {
core.start();
monitor.start();
monitor.addHandler(new LoopBlockMonitor());
}
}

@Override
Expand Down

0 comments on commit 069fa49

Please sign in to comment.