diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-07-29 22:23:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-07-29 22:23:43 +0300 |
commit | d425193e392ee14695faa75d7f6d7a7fd3ea4dd2 (patch) | |
tree | 1ea51b26a10554cdfa488960798e82caeec696bb /src/gui | |
parent | 3941d588a3233176416edf90d1f248ac4cb0fe5e (diff) | |
download | manaverse-d425193e392ee14695faa75d7f6d7a7fd3ea4dd2.tar.gz manaverse-d425193e392ee14695faa75d7f6d7a7fd3ea4dd2.tar.bz2 manaverse-d425193e392ee14695faa75d7f6d7a7fd3ea4dd2.tar.xz manaverse-d425193e392ee14695faa75d7f6d7a7fd3ea4dd2.zip |
Use thread safe way for ipc interaction.
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/gui.cpp | 4 |
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; } |