From: Carl Hetherington Date: Sun, 25 Jan 2015 22:49:13 +0000 (+0000) Subject: Probably-missing lock. X-Git-Tag: v2.0.48~265 X-Git-Url: https://main.carlh.net/gitweb/?a=commitdiff_plain;h=1b6a26c3b1387026f68c5cb72f3da21370595f2d;p=dcpomatic.git Probably-missing lock. --- 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 ("Threads")); - _servers.push_back (sd); + { + boost::mutex::scoped_lock lm (_mutex); + _servers.push_back (sd); + } ui_signaller->emit (boost::bind (boost::ref (ServerFound), sd)); } }