From d30ff0e11aed118ee5cc3a2d0c0fa02b65a3d0e5 Mon Sep 17 00:00:00 2001 From: orignal Date: Sat, 11 Jul 2026 12:01:09 -0400 Subject: [PATCH] const GetOwner --- libi2pd_client/I2PService.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 };