Fix double lock in ServerConnection
This commit is contained in:
@@ -17,10 +17,8 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ private final List<NetworkManager> pending = Collections.synchronizedList(Lists.<NetworkManager>newArrayList());
|
||||
+ private void addPending() {
|
||||
+ synchronized (pending) {
|
||||
+ synchronized (this.h) { // Paper - OBFHELPER - List of network managers
|
||||
+ this.h.addAll(pending);
|
||||
+ pending.clear();
|
||||
+ }
|
||||
+ this.h.addAll(pending); // Paper - OBFHELPER - List of network managers
|
||||
+ pending.clear();
|
||||
+ }
|
||||
+ }
|
||||
+ // Paper end
|
||||
|
||||
Reference in New Issue
Block a user