When there are open channels to a node that is offline for longer than the
connection timeout, the channels will be marked closed, and callbacks will
be fired.
update_node_udp(mesh, n, NULL);
n->status.broadcast = false;
n->options = 0;
+ utcp_offline(n->utcp, true);
} else if(n->connection) {
if(n->connection->outgoing) {
send_req_key(mesh, n);
}
+
+ utcp_offline(n->utcp, false);
}
}
}
-Subproject commit 6ef1b39de8c0b0537da02b212acaba3242afe142
+Subproject commit fa93ca75a603758e00781f2e9acb52bdbe6695b7
sleep(1);
- // Stop mesh2, then try to send data to it. We should get a notification that the channel has closed after a while.
-
- assert(!check_sync_flag(&receive_flag));
+ // Stop mesh2. We should get a notification that the channel has closed after a while.
meshlink_stop(mesh2);
- assert(meshlink_channel_send(mesh1, channel, "hello", 5) == 5);
-
assert(wait_sync_flag(&receive_flag, 70));
assert(receive_len == 0);