]> git.stg.codes - stg.git/blobdiff - projects/stargazer/plugins/other/ping/ping.h
More std::jthread stuff.
[stg.git] / projects / stargazer / plugins / other / ping / ping.h
index aaa2988a723f9f14eb054126c0b613639eb81147..b52a5e1cd180825e655ad0b3c1e08e1ad0d10247 100644 (file)
@@ -69,7 +69,7 @@ class PING : public Plugin
         void UnSetUserNotifiers(UserPtr u);
         void Run(std::stop_token token);
 
-        mutable std::string errorStr;
+        std::string errorStr;
         PING_SETTINGS pingSettings;
         ModuleSettings settings;
         Users * users;
@@ -78,7 +78,7 @@ class PING : public Plugin
         std::jthread m_thread;
         std::mutex m_mutex;
         bool isRunning;
-        mutable STG_PINGER pinger;
+        STG_PINGER m_pinger;
 
         void updateCurrIP(uint32_t oldVal, uint32_t newVal);
         void updateIPs(const UserIPs& oldVal, const UserIPs& newVal);