Do EncodeServerFinder 'disable' in a more sensible way.
[dcpomatic.git] / src / lib / encode_server_finder.h
index 58c7677f66229c97a03ded812932a3c794a5054b..c639dfe3bf3aabdd641ee4295348699ca7cd2b0d 100644 (file)
@@ -37,13 +37,7 @@ public:
        static EncodeServerFinder* instance ();
        static void drop ();
 
-       void disable () {
-               _disabled = true;
-       }
-
-       bool disabled () const {
-               return _disabled;
-       }
+       void stop ();
 
        std::list<EncodeServerDescription> servers () const;
 
@@ -65,8 +59,6 @@ private:
 
        void config_changed (Config::Property what);
 
-       bool _disabled;
-
        /** Thread to periodically issue broadcasts and requests to find encoding servers */
        boost::thread* _search_thread;
        /** Thread to listen to the responses from servers */