try_outgoing_connections(mesh);
- main_loop();
+ main_loop(mesh);
return NULL;
}
void meshlink_close(meshlink_handle_t *mesh) {
// Close and free all resources used.
- close_network_connections();
+ close_network_connections(mesh);
logger(DEBUG_ALWAYS, LOG_NOTICE, "Terminating");