diff options
| author | Carl Hetherington <cth@carlh.net> | 2013-11-06 18:00:53 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2013-11-06 18:00:53 +0000 |
| commit | 7125d8ec2217ae874ce452602465f630f674e786 (patch) | |
| tree | cb70ee80dbf446a797832ecc2ab2ffa542b00596 /src/lib/server_finder.cc | |
| parent | 59602b67d0637817a156b7bd0fc05f96fe41dee5 (diff) | |
Remove configuration of servers.
Diffstat (limited to 'src/lib/server_finder.cc')
| -rw-r--r-- | src/lib/server_finder.cc | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/lib/server_finder.cc b/src/lib/server_finder.cc index 56f52b7fc..941caf4d9 100644 --- a/src/lib/server_finder.cc +++ b/src/lib/server_finder.cc @@ -34,7 +34,8 @@ using boost::scoped_array; ServerFinder* ServerFinder::_instance = 0; ServerFinder::ServerFinder () - : _broadcast_thread (0) + : _disabled (false) + , _broadcast_thread (0) , _listen_thread (0) { _broadcast_thread = new boost::thread (boost::bind (&ServerFinder::broadcast_thread, this)); @@ -103,6 +104,10 @@ ServerFinder::listen_thread () void ServerFinder::connect (boost::function<void (ServerDescription)> fn) { + if (_disabled) { + return; + } + boost::mutex::scoped_lock lm (_mutex); /* Emit the current list of servers */ |
