diff options
Diffstat (limited to 'src/network.h')
-rw-r--r-- | src/network.h | 4 |
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; }; |