mirror of
https://github.com/zaaarf/geb.git
synced 2024-11-13 00:59:22 +01:00
fix: actually register the listener
This commit is contained in:
parent
3dc755f0c7
commit
81968f1c16
2 changed files with 3 additions and 0 deletions
|
@ -46,6 +46,8 @@ public class GEB implements IBus {
|
|||
listener.getClass(),
|
||||
ConcurrentHashMap.newKeySet()
|
||||
);
|
||||
|
||||
this.listenerMap.get(listener.getClass()).add(listener);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
@ -21,6 +21,7 @@ public interface IBus {
|
|||
/**
|
||||
* Tells you whether a listener is currently registered.
|
||||
* Ideally this should be efficient.
|
||||
* @param listener the listener to check
|
||||
* @return true if the listener is registered
|
||||
*/
|
||||
boolean isRegistered(IListener listener);
|
||||
|
|
Loading…
Reference in a new issue