Skip to content

Commit

Permalink
Notify stop callback whenever stop is called
Browse files Browse the repository at this point in the history
even if the daemon is no longer running.
  • Loading branch information
tobias committed Oct 6, 2015
1 parent e410d71 commit 3208e8c
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,12 @@ public void start() {

@Override
public synchronized void stop() throws TimeoutException, InterruptedException {
if (this.stopCallback != null) {
this.stopCallback.notify(this.name);
}

if (isRunning()) {
this.isRunning = false;
if (this.stopCallback != null) {
this.stopCallback.notify(this.name);
}

this.thread.join(threadTimeout);
if (this.thread.isAlive()) {
Expand Down

0 comments on commit 3208e8c

Please sign in to comment.