Skip to content

Commit

Permalink
try to fix use of global variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Bonani committed Oct 13, 2020
1 parent e0de657 commit d60efe4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion aseba/thymio-device-manager/aseba_node_registery.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ aseba_node_registery::node_map aseba_node_registery::nodes() const {

void aseba_node_registery::set_tcp_endpoint(const boost::asio::ip::tcp::endpoint& endpoint) {
m_nodes_service_desc.endpoint(endpoint);
//update_discovery(); //make in only once after ws_endpoint
update_discovery();
}

void aseba_node_registery::set_ws_endpoint(const boost::asio::ip::tcp::endpoint& endpoint) {
Expand All @@ -134,6 +134,7 @@ void aseba_node_registery::update_discovery() {
void aseba_node_registery::on_update_discovery_complete(const boost::system::error_code& ec) {
if(ec) {
mLogError("Discovery : {}", ec.message());
m_discovery_needs_update = true;
} else {
mLogTrace("Discovery : update complete");
m_updating_discovery = false;
Expand Down

0 comments on commit d60efe4

Please sign in to comment.