+
+list<ServerDescription>
+ServerFinder::servers () const
+{
+ boost::mutex::scoped_lock lm (_servers_mutex);
+ return _servers;
+}
+
+void
+ServerFinder::config_changed (Config::Property what)
+{
+ if (what == Config::USE_ANY_SERVERS || what == Config::SERVERS) {
+ {
+ boost::mutex::scoped_lock lm (_servers_mutex);
+ _servers.clear ();
+ }
+ ServersListChanged ();
+ search_now ();
+ }
+}
+
+void
+ServerFinder::search_now ()
+{
+ _search_condition.notify_all ();
+}