summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2019-02-12 21:40:30 +0000
committerCarl Hetherington <cth@carlh.net>2019-02-12 21:40:30 +0000
commitaf9616fbe2b0bc862fc5b72b25059c923b57917d (patch)
tree3016ebe92947989c60c7ff9c3281837945d3ed73 /src
parent009324f18c0e4920efb8fcfb3ef06ad9a691db7a (diff)
parentcfcb0f5d66cc68d8d395480a95d4fe95c63e214e (diff)
Merge branch 'master' of ssh://git.carlh.net/home/carl/git/dcpomatic
Diffstat (limited to 'src')
-rw-r--r--src/tools/dcpomatic_server.cc7
1 files changed, 7 insertions, 0 deletions
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));