From 2a3b41f948c09ccfc3cd689b2e4aeb95b47a05b7 Mon Sep 17 00:00:00 2001 From: Michael Friedrich Date: Fri, 12 Jul 2013 11:04:04 +0200 Subject: [PATCH] livestatus: remove stop function again --- components/livestatus/component.cpp | 16 ++-------------- components/livestatus/component.h | 3 --- 2 files changed, 2 insertions(+), 17 deletions(-) diff --git a/components/livestatus/component.cpp b/components/livestatus/component.cpp index a43d2d2f1..bc10ca534 100644 --- a/components/livestatus/component.cpp +++ b/components/livestatus/component.cpp @@ -51,20 +51,8 @@ void LivestatusComponent::Start(void) m_Listener = socket; - m_Thread = boost::thread(boost::bind(&LivestatusComponent::ServerThreadProc, this, socket)); - m_Thread.detach(); -} - -/** - * Stops the component. - */ -void LivestatusComponent::Stop(void) -{ - m_Listener->Close(); - - Log(LogInformation, "livestatus", "Socket closed."); - - m_Thread.join(); + boost::thread thread(boost::bind(&LivestatusComponent::ServerThreadProc, this, socket)); + thread.detach(); } String LivestatusComponent::GetSocketPath(void) const diff --git a/components/livestatus/component.h b/components/livestatus/component.h index e118aad15..5b7c3326d 100644 --- a/components/livestatus/component.h +++ b/components/livestatus/component.h @@ -39,13 +39,10 @@ public: LivestatusComponent(const Dictionary::Ptr& serializedUpdate); virtual void Start(void); - virtual void Stop(void); String GetSocketPath(void) const; private: - boost::thread m_Thread; - Attribute m_SocketPath; Socket::Ptr m_Listener;