Fixes Rpc Cancel. Check was only in timeout case instead of global (#110)

This commit is contained in:
Thad House
2016-09-02 19:28:59 -07:00
committed by Peter Johnson
parent 2150f5879b
commit fc48944b47

View File

@@ -1441,9 +1441,10 @@ bool Storage::GetRpcResult(bool blocking, unsigned int call_uid, double time_out
m_rpc_blocking_calls.erase(call_uid);
return false;
}
// if element does not exist, we have been canceled
if (m_rpc_blocking_calls.count(call_uid) == 0)
return false;
}
// if element does not exist, we have been canceled
if (m_rpc_blocking_calls.count(call_uid) == 0) {
return false;
}
if (m_terminating) {
m_rpc_blocking_calls.erase(call_uid);