fix: actually register the listener

This commit is contained in:
zaaarf 2024-08-30 14:05:30 +02:00
parent 3dc755f0c7
commit 81968f1c16
No known key found for this signature in database
GPG key ID: 102E445F4C3F829B
2 changed files with 3 additions and 0 deletions

View file

@ -46,6 +46,8 @@ public class GEB implements IBus {
listener.getClass(),
ConcurrentHashMap.newKeySet()
);
this.listenerMap.get(listener.getClass()).add(listener);
}
/**

View file

@ -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);