summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-01-14 01:37:48 +0300
committerAndrei Karas <akaras@inbox.ru>2014-01-14 01:37:48 +0300
commit4424f769af82000bc84b9d4c9f46c20834a817e6 (patch)
tree25d3a55792e44c644ec4f205429b9861d9ef346e
parentc169dbdd1fc14f66890dcb6fba7ecf543067875d (diff)
downloadplus-4424f769af82000bc84b9d4c9f46c20834a817e6.tar.gz
plus-4424f769af82000bc84b9d4c9f46c20834a817e6.tar.bz2
plus-4424f769af82000bc84b9d4c9f46c20834a817e6.tar.xz
plus-4424f769af82000bc84b9d4c9f46c20834a817e6.zip
fix thread safe logging.
-rw-r--r--src/logger.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/logger.cpp b/src/logger.cpp
index a4cc5096b..c430aefec 100644
--- a/src/logger.cpp
+++ b/src/logger.cpp
@@ -223,6 +223,7 @@ void Logger::flush()
SDL_mutexP(mMutex);
FOR_EACH (std::vector<std::string>::const_iterator, it, mDelayedLog)
mLogFile << *it;
+ mDelayedLog.clear();
SDL_mutexV(mMutex);
}
}