From: Carl Hetherington Date: Tue, 12 Feb 2019 21:39:01 +0000 (+0000) Subject: Merge branch 'master' of ssh://git.carlh.net/home/carl/git/dcpomatic X-Git-Tag: v2.13.117~7^2 X-Git-Url: https://git.carlh.net/gitweb/?p=dcpomatic.git;a=commitdiff_plain;h=cfcb0f5d66cc68d8d395480a95d4fe95c63e214e;hp=6f856af55898f94b45e3be28aa4f7c962de8a398 Merge branch 'master' of ssh://git.carlh.net/home/carl/git/dcpomatic --- diff --git a/src/tools/dcpomatic_server.cc b/src/tools/dcpomatic_server.cc index d29ac0a63..3c2cd58da 100644 --- a/src/tools/dcpomatic_server.cc +++ b/src/tools/dcpomatic_server.cc @@ -286,6 +286,13 @@ private: signal_manager = new wxSignalManager (this); Bind (wxEVT_IDLE, boost::bind (&App::idle, this)); + /* Bad things happen (on Linux at least) if the config is reloaded by main_thread; + it seems like there's a race which results in the locked_sstream mutex being + locked before it is initialised. Calling Config::instance() here loads the config + again in this thread, which seems to work around the problem. + */ + Config::instance(); + _icon = new TaskBarIcon; _thread = new thread (bind (&App::main_thread, this));