Skip to content

Commit

Permalink
Merge pull request #34 from robbr48/fix_failed_fetch_interfaces
Browse files Browse the repository at this point in the history
Resolved endless loop when fetching interfaces.
  • Loading branch information
robbr48 authored Dec 12, 2017
2 parents 47461e2 + 13c7a05 commit 0f704bf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/Communication/ManagerCommHandler.cc
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ void ManagerCommHandler::ReaderThreadRun() {

int nClosedSock = 0;
std::vector<int> closedSockets;
while(nClosedSock != TheModel.GetComponentsNum()) {
while(nClosedSock < TheModel.GetComponentsNum()) {
Comm.SelectReadSocket(); // wait for a change

for(int iSock = TheModel.GetComponentsNum() - 1; iSock >= 0; --iSock) {
Expand Down

0 comments on commit 0f704bf

Please sign in to comment.