]> granicus.if.org Git - icinga2/commitdiff
livestatus: remove stop function again
authorMichael Friedrich <michael.friedrich@netways.de>
Fri, 12 Jul 2013 09:04:04 +0000 (11:04 +0200)
committerMichael Friedrich <michael.friedrich@netways.de>
Fri, 12 Jul 2013 09:04:04 +0000 (11:04 +0200)
components/livestatus/component.cpp
components/livestatus/component.h

index a43d2d2f10b814fb9ee0c5ad12f7bbd029e96e79..bc10ca534b1549fa2e456dc16b9e26e4b08c9911 100644 (file)
@@ -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
index e118aad15ab4795d26273aec65904aa78f10b3ba..5b7c3326d29235af101d2ef2817eab56b89fe6e0 100644 (file)
@@ -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<String> m_SocketPath;
 
        Socket::Ptr m_Listener;