diff options
Diffstat (limited to 'src/lib/server_finder.cc')
| -rw-r--r-- | src/lib/server_finder.cc | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/lib/server_finder.cc b/src/lib/server_finder.cc index bef00702f..d62531d9f 100644 --- a/src/lib/server_finder.cc +++ b/src/lib/server_finder.cc @@ -192,13 +192,9 @@ ServerFinder::server_found (string ip) const return i != _servers.end (); } -void +boost::signals2::connection ServerFinder::connect (boost::function<void (ServerDescription)> fn) { - if (_disabled) { - return; - } - boost::mutex::scoped_lock lm (_mutex); /* Emit the current list of servers */ @@ -206,7 +202,7 @@ ServerFinder::connect (boost::function<void (ServerDescription)> fn) fn (*i); } - ServerFound.connect (fn); + return ServerFound.connect (fn); } ServerFinder* |
