mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-22 01:11:42 +00:00
Finishes blocking call canceling (#99)
This commit is contained in:
committed by
Peter Johnson
parent
277cf2a08f
commit
66d214c8a8
@@ -1432,6 +1432,9 @@ 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 (m_terminating) {
|
||||
m_rpc_blocking_calls.erase(call_uid);
|
||||
|
||||
Reference in New Issue
Block a user