mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
GetRpcResult: Check m_terminating after wait() returns.
This commit is contained in:
@@ -1371,6 +1371,7 @@ bool Storage::GetRpcResult(bool blocking, unsigned int call_uid,
|
||||
if (i == m_rpc_results.end()) {
|
||||
if (!blocking || m_terminating) return false;
|
||||
m_rpc_results_cond.wait(lock);
|
||||
if (m_terminating) return false;
|
||||
continue;
|
||||
}
|
||||
result->swap(i->getSecond());
|
||||
|
||||
Reference in New Issue
Block a user