Fixed coverity reported concurrency issue

Signed-off-by: Santhosh Edukulla <santhosh.edukulla@gmail.com>
This commit is contained in:
Santhosh Edukulla 2014-08-05 17:28:37 +05:30
parent 9866c648eb
commit 0ca3b4a4e4
1 changed files with 2 additions and 4 deletions

View File

@ -193,9 +193,8 @@ public class RpcClientCallImpl implements RpcClientCall {
@SuppressWarnings("unchecked")
public void complete(String result) {
_responseResult = result;
synchronized (_responseLock) {
_responseResult = result;
_responseDone = true;
_responseLock.notifyAll();
}
@ -213,11 +212,10 @@ public class RpcClientCallImpl implements RpcClientCall {
}
public void complete(RpcException e) {
_responseResult = e;
synchronized (_responseLock) {
_responseResult = e;
_responseDone = true;
_responseLock.notifyAll();
}