From da522ec13bf26defffddfa8ef0c20cc2b3fd0845 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Sat, 30 Apr 2022 08:42:12 +0200 Subject: Network: stop watching local head before destroying other data --- src/network.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') 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; - WatchedHead localHead; thread threadListen; thread threadAnnounce; @@ -179,6 +178,9 @@ struct Server::Priv vector localAddresses; vector bcastAddresses; + // Stop watching before destroying other data + WatchedHead localHead; + // Start destruction with finalizing services vector> services; }; -- cgit v1.2.3