From e0b98cfa7628d62880c9f3caff8e54e011de4fea Mon Sep 17 00:00:00 2001 From: alexey-milovidov Date: Wed, 7 Jul 2021 01:18:41 +0300 Subject: [PATCH] Update CertReloader.h --- src/Server/CertReloader.h | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Server/CertReloader.h b/src/Server/CertReloader.h index 013692f5e15..92ea6c83e51 100644 --- a/src/Server/CertReloader.h +++ b/src/Server/CertReloader.h @@ -92,10 +92,12 @@ public: int SetCert(SSL * ssl); private: - CertReloader() : log(&Poco::Logger::get("CertReloader")), cert_file(""), cert(nullptr), key_file(""), key(nullptr) { } + CertReloader() + { + } - mutable std::shared_mutex lck; - Poco::Logger * log; + mutable std::shared_mutex lock; + Poco::Logger * log = &Poco::Logger::get("CertReloader"); std::string cert_file; stat_t cert_file_st;