mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Fixes Rpc Cancel. Check was only in timeout case instead of global (#110)
This commit is contained in:
committed by
Peter Johnson
parent
2150f5879b
commit
fc48944b47
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user