summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-07-29 22:23:43 +0300
committerAndrei Karas <akaras@inbox.ru>2014-07-29 22:23:43 +0300
commitd425193e392ee14695faa75d7f6d7a7fd3ea4dd2 (patch)
tree1ea51b26a10554cdfa488960798e82caeec696bb /src/gui
parent3941d588a3233176416edf90d1f248ac4cb0fe5e (diff)
downloadmv-d425193e392ee14695faa75d7f6d7a7fd3ea4dd2.tar.gz
mv-d425193e392ee14695faa75d7f6d7a7fd3ea4dd2.tar.bz2
mv-d425193e392ee14695faa75d7f6d7a7fd3ea4dd2.tar.xz
mv-d425193e392ee14695faa75d7f6d7a7fd3ea4dd2.zip
Use thread safe way for ipc interaction.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/gui.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp
index 779bec99c..7ac1273bd 100644
--- a/src/gui/gui.cpp
+++ b/src/gui/gui.cpp
@@ -100,6 +100,8 @@
#include "utils/langs.h"
#include "utils/timer.h"
+#include "net/ipc.h"
+
#include "debug.h"
// Guichan stuff
@@ -347,6 +349,8 @@ void Gui::slowLogic()
if (mTime != time)
{
logger->flush();
+ if (ipc)
+ ipc->flush();
mTime = time;
}