public void unregister ( Object eventListener ) throws MangooEventBusException { Objects . requireNonNull ( eventListener , Required . EVENT_LISTENER . toString ( ) ) ; try { this . eventBus . unregister ( eventListener ) ; } catch ( IllegalArgumentException e ) { throw new MangooEventBusException ( e ) ; } if ( this . listeners . get ( ) > 0 ) { this . listeners . getAndDecrement ( ) ; } }
Unregisters an event listener to the event bus