From 96a2b6f7ce0be67248cbc612e2ef03ea7d586039 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Mon, 6 Jul 2015 14:06:25 +0100 Subject: Search for servers immediately when configuration changes. --- src/lib/server_finder.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/lib/server_finder.h') diff --git a/src/lib/server_finder.h b/src/lib/server_finder.h index 22f44eeb8..3bb0e03f9 100644 --- a/src/lib/server_finder.h +++ b/src/lib/server_finder.h @@ -53,6 +53,7 @@ private: void handle_accept (boost::system::error_code ec, boost::shared_ptr socket); void config_changed (Config::Property what); + void search_now (); bool _disabled; @@ -68,5 +69,8 @@ private: boost::shared_ptr _listen_acceptor; bool _stop; + boost::condition _search_condition; + boost::mutex _search_condition_mutex; + static ServerFinder* _instance; }; -- cgit v1.2.3