diff options
| author | Carl Hetherington <cth@carlh.net> | 2016-07-20 10:47:49 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2016-07-20 10:47:49 +0100 |
| commit | 57d00c880094b1dfebaee18f4ecafb1dd44b0afb (patch) | |
| tree | db9d5a1bcc6be5a99afa1bd317a1c27930eaefbb /src/lib/encode_server_finder.h | |
| parent | b34310b4e90af1442363fe09db082d68e1721130 (diff) | |
Do EncodeServerFinder 'disable' in a more sensible way.
Just stop the threads and clear the server list when
stop() is called.
Diffstat (limited to 'src/lib/encode_server_finder.h')
| -rw-r--r-- | src/lib/encode_server_finder.h | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/src/lib/encode_server_finder.h b/src/lib/encode_server_finder.h index 58c7677f6..c639dfe3b 100644 --- a/src/lib/encode_server_finder.h +++ b/src/lib/encode_server_finder.h @@ -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 */ |
