Skip to content

Commit

Permalink
ConnectionManager: fix infinite loop
Browse files Browse the repository at this point in the history
Change-Id: I3bad2a7673e9faf860a4a34544c51ef2df2d387c
  • Loading branch information
aberaud committed Oct 21, 2024
1 parent 9452be1 commit 16e03dc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/connectionmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -262,6 +262,8 @@ struct DeviceInfo {
ret.emplace_back(std::move(cb));
it = connecting.erase(it);
}
} else {
++it;
}
}
for (auto it = waiting.begin(); it != waiting.end();) {
Expand All @@ -276,6 +278,8 @@ struct DeviceInfo {
ret.emplace_back(std::move(cb));
it = waiting.erase(it);
}
} else {
++it;
}
}
return {ret, retry};
Expand Down

0 comments on commit 16e03dc

Please sign in to comment.