mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-03 10:53:49 +00:00
also remove listener thread from map when listener is unsubscribed
This commit is contained in:
1 parent
159faebefb
commit
92817e992d
1 file changed
+1
-1
@@ -146,7 +146,7 @@ public abstract class UDPReceiver<MessageType extends UDPMessage, ListenerType e
|
||||
|
||||
public synchronized void removeListener(ListenerType listener) {
|
||||
listeners.remove(listener);
|
||||
listenerThreads.get(listener).stop();
|
||||
listenerThreads.remove(listener).stop();
|
||||
}
|
||||
|
||||
public int getPort() {
|
||||
|
||||
Reference in new issue
Block a user