Merge branch 'master' into dev
This commit is contained in:
commit
6d0b28fac4
|
@ -37,8 +37,7 @@ public class BukkitViaInjector implements ViaInjector {
|
|||
// Inject the list
|
||||
List wrapper = new ListWrapper((List) value) {
|
||||
@Override
|
||||
public synchronized void handleAdd(Object o) {
|
||||
synchronized (this) {
|
||||
public void handleAdd(Object o) {
|
||||
if (o instanceof ChannelFuture) {
|
||||
try {
|
||||
injectChannelFuture((ChannelFuture) o);
|
||||
|
@ -47,7 +46,6 @@ public class BukkitViaInjector implements ViaInjector {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
injectedLists.add(new Pair<>(field, connection));
|
||||
field.set(connection, wrapper);
|
||||
|
|
|
@ -36,8 +36,7 @@ public class SpongeViaInjector implements ViaInjector {
|
|||
// Inject the list
|
||||
List wrapper = new ListWrapper((List) value) {
|
||||
@Override
|
||||
public synchronized void handleAdd(Object o) {
|
||||
synchronized (this) {
|
||||
public void handleAdd(Object o) {
|
||||
if (o instanceof ChannelFuture) {
|
||||
try {
|
||||
injectChannelFuture((ChannelFuture) o);
|
||||
|
@ -46,7 +45,6 @@ public class SpongeViaInjector implements ViaInjector {
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
injectedLists.add(new Pair<>(field, connection));
|
||||
field.set(connection, wrapper);
|
||||
|
|
Loading…
Reference in New Issue