Permalink
Browse files

Fixed IllegalStateException during nexus shutdown

... sorry, Tamas, I was wrong and you were right about evenbus api.

Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
  • Loading branch information...
1 parent b03acf0 commit d3832ef269c5d88a2a16d10b7363993a1b8140d1 @ifedorenko ifedorenko committed Apr 2, 2013
@@ -235,7 +235,10 @@ public void run()
@Override
public void shutdown()
{
- eventBus.unregister( eventDispatcher );
+ if ( config.isFeatureActive() )
+ {
+ eventBus.unregister( eventDispatcher );
+ }
executor.shutdown();
constrainedExecutor.cancelAllJobs();
try

0 comments on commit d3832ef

Please sign in to comment.