Skip to content

Commit

Permalink
Merge pull request #235 from elandau/nextgen
Browse files Browse the repository at this point in the history
Fix bug testing current lifecycle state in LifecycleManager
  • Loading branch information
elandau committed Aug 14, 2015
2 parents 33c6cc4 + 013707b commit c893b63
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public enum State {
public void addListener(LifecycleListener listener) {
if (listeners.add(listener)) {
LOG.info("Adding LifecycleListener '{}' {}", listener.getClass().getName(), System.identityHashCode(listener));
if (state.equals(State.Started)) {
if (state.get().equals(State.Started)) {
LOG.info("Starting LifecycleListener '{}'", listener.getClass().getName());
listener.onStarted();
}
Expand Down

0 comments on commit c893b63

Please sign in to comment.