Skip to content

Commit

Permalink
Logs a warning instead of throwing IllegalStateException. wocommunity…
Browse files Browse the repository at this point in the history
…#784

stop() is called when ApplicationWillTerminateNotification is
posted. If _queueThread is null or not alive, throwing an
IllegalStateException here just prevents the application from
terminating.
  • Loading branch information
paulhoadley committed Jul 14, 2016
1 parent a04cf8a commit e6aba23
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -634,7 +634,7 @@ public void stop() {
_queueThread.interrupt();
}
else {
throw new IllegalStateException("Attempted to stop the " + getClass().getSimpleName() + " when it wasn't already running");
log.warn("Attempted to stop the " + getClass().getSimpleName() + " when it wasn't already running");
}
}
}
Expand Down

0 comments on commit e6aba23

Please sign in to comment.