diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-01-14 01:37:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-01-14 01:37:48 +0300 |
commit | 4424f769af82000bc84b9d4c9f46c20834a817e6 (patch) | |
tree | 25d3a55792e44c644ec4f205429b9861d9ef346e /src | |
parent | c169dbdd1fc14f66890dcb6fba7ecf543067875d (diff) | |
download | ManaVerse-4424f769af82000bc84b9d4c9f46c20834a817e6.tar.gz ManaVerse-4424f769af82000bc84b9d4c9f46c20834a817e6.tar.bz2 ManaVerse-4424f769af82000bc84b9d4c9f46c20834a817e6.tar.xz ManaVerse-4424f769af82000bc84b9d4c9f46c20834a817e6.zip |
fix thread safe logging.
Diffstat (limited to 'src')
-rw-r--r-- | src/logger.cpp | 1 |
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); } } |