From d9ddd8746ca83f361ec7ffb9f7146f6a23553b93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Smr=C5=BE?= Date: Mon, 29 Nov 2021 23:04:42 +0100 Subject: Server: finalize services before destroying peers and 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 b2cd8be..b1ecf86 100644 --- a/src/network.h +++ b/src/network.h @@ -162,7 +162,6 @@ struct Server::Priv Identity self; Bhv localState; WatchedHead localHead; - vector> services; thread threadListen; thread threadAnnounce; @@ -175,6 +174,9 @@ struct Server::Priv int sock; vector bcastAddresses; + + // Start destruction with finalizing services + vector> services; }; } -- cgit v1.2.3