From 1bd1b5545b700ccb1d9d717de321611796182550 Mon Sep 17 00:00:00 2001 From: Sandu Liviu Catalin Date: Tue, 7 Sep 2021 19:46:28 +0300 Subject: [PATCH] Update Announce.hpp --- module/Library/Utils/Announce.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/module/Library/Utils/Announce.hpp b/module/Library/Utils/Announce.hpp index 815c9e10..ce6f1087 100644 --- a/module/Library/Utils/Announce.hpp +++ b/module/Library/Utils/Announce.hpp @@ -40,8 +40,9 @@ using Poco::StreamCopier; /* ------------------------------------------------------------------------------------------------ * Helper utility that can be used to announce the server to a master-list. */ -struct SqAnnouncer : SqChainedInstances< SqAnnouncer > +struct SqAnnouncer : public SqChainedInstances< SqAnnouncer > { + using Base = SqChainedInstances< SqAnnouncer >; /* -------------------------------------------------------------------------------------------- * Announcer status. */ @@ -114,7 +115,7 @@ struct SqAnnouncer : SqChainedInstances< SqAnnouncer > * Explicit constructor. */ SqAnnouncer(SQInteger interval, StackStrF & uri) - : mRun(false), mLog(true) + : Base(), mRun(false), mLog(true) , mCount(0) , mSuccess(0) , mFailures(0) @@ -125,8 +126,7 @@ struct SqAnnouncer : SqChainedInstances< SqAnnouncer > , mURI(uri.mPtr) , mMtx(), mThread() { - // Remember this instance - ChainInstance(); + ChainInstance(); // Remember this instance } /* --------------------------------------------------------------------------------------------