7017486: Need synchronized access when flushing the LDAP request queue
Reviewed-by: alanb
This commit is contained in:
parent
10439e2650
commit
b11e82495a
@ -656,14 +656,17 @@ public final class Connection implements Runnable {
|
||||
}
|
||||
nparent = notifyParent;
|
||||
}
|
||||
}
|
||||
if (nparent) {
|
||||
LdapRequest ldr = pendingRequests;
|
||||
while (ldr != null) {
|
||||
ldr.notify();
|
||||
ldr = ldr.next;
|
||||
if (nparent) {
|
||||
LdapRequest ldr = pendingRequests;
|
||||
while (ldr != null) {
|
||||
|
||||
synchronized (ldr) {
|
||||
ldr.notify();
|
||||
ldr = ldr.next;
|
||||
}
|
||||
}
|
||||
parent.processConnectionClosure();
|
||||
}
|
||||
parent.processConnectionClosure();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user