Skip to content
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Stop the RemoteStateActor when the direct addr watcher disconnects
  • Loading branch information
matheus23 committed Nov 20, 2025
commit 3f8d72a6996325bbfbf1b9c86d8a633fbb29e0e5
6 changes: 5 additions & 1 deletion iroh/src/magicsock/remote_map/remote_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,11 @@ impl RemoteStateActor {
self.selected_path.set(None).ok();
}
}
_ = self.local_addrs.updated(), if self.local_addrs.is_connected() => {
res = self.local_addrs.updated() => {
if let Err(n0_watcher::Disconnected) = res {
trace!("direct address watcher disconnected, shutting down");
break;
}
trace!("local addrs updated, triggering holepunching");
self.trigger_holepunching().await;
}
Expand Down