mirror of
https://github.com/xodio/xod.git
synced 2026-03-23 09:06:55 +01:00
fix(rt/c++): return false on isTimedOut if a node didn’t ever scheduled
This commit is contained in:
committed by
Evgeny Kochetkov
parent
ba16d9f90b
commit
dea3323bcc
@@ -420,7 +420,7 @@ void clearTimeout(NodeId nid) {
|
||||
}
|
||||
|
||||
bool isTimedOut(NodeId nid) {
|
||||
return g_schedule[nid] < transactionTime();
|
||||
return g_schedule[nid] && g_schedule[nid] < transactionTime();
|
||||
}
|
||||
|
||||
} // namespace xod
|
||||
|
||||
Reference in New Issue
Block a user