diff options
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/server_finder.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/server_finder.cc b/src/lib/server_finder.cc index 35ce9e1a1..ffc2d42df 100644 --- a/src/lib/server_finder.cc +++ b/src/lib/server_finder.cc @@ -136,7 +136,10 @@ try string const ip = socket.remote_endpoint().address().to_string (); if (!server_found (ip)) { ServerDescription sd (ip, xml->number_child<int> ("Threads")); - _servers.push_back (sd); + { + boost::mutex::scoped_lock lm (_mutex); + _servers.push_back (sd); + } ui_signaller->emit (boost::bind (boost::ref (ServerFound), sd)); } } |
