提交 59400f76 编写于 作者: V vinnie

7017486: Need synchronized access when flushing the LDAP request queue

Reviewed-by: alanb
上级 4317ebd9
...@@ -656,14 +656,17 @@ public final class Connection implements Runnable { ...@@ -656,14 +656,17 @@ public final class Connection implements Runnable {
} }
nparent = notifyParent; nparent = notifyParent;
} }
} if (nparent) {
if (nparent) { LdapRequest ldr = pendingRequests;
LdapRequest ldr = pendingRequests; while (ldr != null) {
while (ldr != null) {
ldr.notify(); synchronized (ldr) {
ldr = ldr.next; ldr.notify();
ldr = ldr.next;
}
}
parent.processConnectionClosure();
} }
parent.processConnectionClosure();
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册