diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-01-25 22:49:13 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-01-25 22:49:13 +0000 |
| commit | 1b6a26c3b1387026f68c5cb72f3da21370595f2d (patch) | |
| tree | 56d77d6beba533daca25db1e16c1006192b20547 /src/lib | |
| parent | b961e62cd60d85e1fb6c3da39ef172aed949a8d3 (diff) | |
Probably-missing lock.
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)); } } |
