summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/network.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/network.h b/src/network.h
index 8e99df1..c620cf6 100644
--- a/src/network.h
+++ b/src/network.h
@@ -164,7 +164,6 @@ struct Server::Priv
Identity self;
Bhv<LocalState> localState;
- WatchedHead<LocalState> localHead;
thread threadListen;
thread threadAnnounce;
@@ -179,6 +178,9 @@ struct Server::Priv
vector<in_addr> localAddresses;
vector<in_addr> bcastAddresses;
+ // Stop watching before destroying other data
+ WatchedHead<LocalState> localHead;
+
// Start destruction with finalizing services
vector<unique_ptr<Service>> services;
};