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

7017486: Need synchronized access when flushing the LDAP request queue

Reviewed-by: alanb
上级 4317ebd9
...@@ -656,16 +656,19 @@ public final class Connection implements Runnable { ...@@ -656,16 +656,19 @@ 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) {
synchronized (ldr) {
ldr.notify(); ldr.notify();
ldr = ldr.next; ldr = ldr.next;
} }
}
parent.processConnectionClosure(); parent.processConnectionClosure();
} }
} }
}
// Assume everything is "quiet" // Assume everything is "quiet"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册