summaryrefslogtreecommitdiff
path: root/src/lib/server_finder.h
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2013-11-06 18:00:53 +0000
committerCarl Hetherington <cth@carlh.net>2013-11-06 18:00:53 +0000
commit7125d8ec2217ae874ce452602465f630f674e786 (patch)
treecb70ee80dbf446a797832ecc2ab2ffa542b00596 /src/lib/server_finder.h
parent59602b67d0637817a156b7bd0fc05f96fe41dee5 (diff)
Remove configuration of servers.
Diffstat (limited to 'src/lib/server_finder.h')
-rw-r--r--src/lib/server_finder.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/server_finder.h b/src/lib/server_finder.h
index 04a7786cf..f964d4e1a 100644
--- a/src/lib/server_finder.h
+++ b/src/lib/server_finder.h
@@ -27,6 +27,10 @@ public:
static ServerFinder* instance ();
+ void disable () {
+ _disabled = true;
+ }
+
private:
ServerFinder ();
@@ -34,6 +38,8 @@ private:
void listen_thread ();
boost::signals2::signal<void (ServerDescription)> ServerFound;
+
+ bool _disabled;
/** Thread to periodically issue broadcasts to find encoding servers */
boost::thread* _broadcast_thread;