From 3abece6f0a7edca476ee0c493f30dda8f8bcefd5 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Fri, 30 Nov 2018 16:52:54 +0100 Subject: core: stop ownership circles in connection --- src/control_connection.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/control_connection.hpp') diff --git a/src/control_connection.hpp b/src/control_connection.hpp index ea2475c..679a2ff 100644 --- a/src/control_connection.hpp +++ b/src/control_connection.hpp @@ -40,14 +40,14 @@ struct control_connection : keyed, std::enable_shared_from_t * * @returns true iff. the listener was not already in the listener set */ - bool add(std::shared_ptr listener); + bool add(listener * listener); /** * @brief Remove the given listener from this control connection's listener set * * @return true iff. the listener was previously registered with this control connection */ - bool remove(std::shared_ptr listener); + bool remove(listener * listener); /** * @brief Start I/O processing for this control connection @@ -71,7 +71,7 @@ struct control_connection : keyed, std::enable_shared_from_t boost::asio::streambuf m_out{}; std::istream m_input{&m_in}; std::ostream m_output{&m_out}; - std::set> m_listeners{}; + std::set m_listeners{}; bool m_running{}; }; -- cgit v1.2.3