diff --git a/libi2pd_client/I2PService.h b/libi2pd_client/I2PService.h index 3a799cba..5231a957 100644 --- a/libi2pd_client/I2PService.h +++ b/libi2pd_client/I2PService.h @@ -127,11 +127,11 @@ namespace client // Call when done to clean up (make sure Kill is called first) inline void Done (std::shared_ptr me) { if(m_Service) m_Service->RemoveHandler(me); } // Call to talk with the owner - inline I2PService * GetOwner() { return m_Service; } + inline I2PService * GetOwner() const { return m_Service; } private: - I2PService *m_Service; + I2PService * m_Service; std::atomic_flag m_Dead; //To avoid cleaning up multiple times };