Skip to content

Commit

Permalink
[libfreelan] Attemps to fix build on Ubuntu 14.04.
Browse files Browse the repository at this point in the history
  • Loading branch information
s-vincent committed Dec 16, 2018
1 parent 5742340 commit 780d8ef
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions libs/freelan/src/switch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -139,16 +139,16 @@ namespace freelan
std::cerr << index << "-> " << target << std::endl;
#endif

if(index != target)
if(index == target)
{
m_ports[target].async_write(data, boost::bind(&results_gatherer_type::gather, rg, target, _1));
}
#if FREELAN_DEBUG
std::cerr << "Index matching target forbidden (" << index << "-> " << target << ")" << std::endl;
#endif
}
else
{
std::cerr << "Index matching target forbidden (" << index << "-> " << target << ")" << std::endl;
m_ports[target].async_write(data, boost::bind(&results_gatherer_type::gather, rg, target, _1));
}
#endif
}
}

Expand Down

0 comments on commit 780d8ef

Please sign in to comment.