mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-17 04:03:33 +08:00
RaftCore implementation fix
This commit is contained in:
@@ -247,6 +247,11 @@ private:
|
||||
setActiveMode(false); // Haha
|
||||
}
|
||||
|
||||
if (append_entries_client_.hasPendingCalls())
|
||||
{
|
||||
append_entries_client_.cancelAllCalls(); // Refer to the response callback to learn why
|
||||
}
|
||||
|
||||
if (active_mode_ || (next_server_index_ > 0))
|
||||
{
|
||||
const NodeID node_id = cluster_.getRemoteServerNodeIDAtIndex(next_server_index_);
|
||||
|
||||
Reference in New Issue
Block a user