mirror of
https://github.com/sirjonasxx/G-Earth.git
synced 2025-01-31 04:42:37 +01:00
quick fix
This commit is contained in:
parent
aae2ecd1f0
commit
9caaac6efb
@ -7,10 +7,7 @@ import gearth.services.packet_info.PacketInfo;
|
|||||||
import gearth.services.packet_info.PacketInfoManager;
|
import gearth.services.packet_info.PacketInfoManager;
|
||||||
import org.reactfx.util.Lists;
|
import org.reactfx.util.Lists;
|
||||||
|
|
||||||
import java.util.ArrayList;
|
import java.util.*;
|
||||||
import java.util.HashMap;
|
|
||||||
import java.util.List;
|
|
||||||
import java.util.Map;
|
|
||||||
import java.util.function.BiFunction;
|
import java.util.function.BiFunction;
|
||||||
import java.util.function.Consumer;
|
import java.util.function.Consumer;
|
||||||
import java.util.function.Function;
|
import java.util.function.Function;
|
||||||
@ -119,7 +116,7 @@ public abstract class ExtensionBase extends IExtension {
|
|||||||
hashOrNameIncomingListeners :
|
hashOrNameIncomingListeners :
|
||||||
hashOrNameOutgoingListeners ;
|
hashOrNameOutgoingListeners ;
|
||||||
|
|
||||||
List<MessageListener> correctListeners = new ArrayList<>();
|
Set<MessageListener> correctListeners = new HashSet<>();
|
||||||
|
|
||||||
synchronized (listeners) {
|
synchronized (listeners) {
|
||||||
if (listeners.containsKey(-1)) { // registered on all packets
|
if (listeners.containsKey(-1)) { // registered on all packets
|
||||||
|
Loading…
x
Reference in New Issue
Block a user