diff options
author | Andrei Karas <akaras@inbox.ru> | 2017-05-02 17:07:20 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2017-05-02 17:07:20 +0300 |
commit | 79d27e4b7b4a86d8ca33456871de05f86d4d14c8 (patch) | |
tree | 076fb7e15c6fd8623a09a8e3ffdccb5bb897b831 /src/client.cpp | |
parent | 436443304ddd09d98b30602dbbb670cc856e239e (diff) | |
download | mv-79d27e4b7b4a86d8ca33456871de05f86d4d14c8.tar.gz mv-79d27e4b7b4a86d8ca33456871de05f86d4d14c8.tar.bz2 mv-79d27e4b7b4a86d8ca33456871de05f86d4d14c8.tar.xz mv-79d27e4b7b4a86d8ca33456871de05f86d4d14c8.zip |
Add temination flag for background download threads.
This probably will fix random crash in tests after start and exit.
Diffstat (limited to 'src/client.cpp')
-rw-r--r-- | src/client.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/client.cpp b/src/client.cpp index 307418964..21ea23ce1 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -208,6 +208,7 @@ time_t start_time; unsigned int mLastHost = 0; unsigned long mSearchHash = 0; int textures_count = 0; +volatile bool isTerminate = false; namespace { @@ -619,6 +620,7 @@ void Client::gameClear() { if (logger) logger->log1("Quitting1"); + isTerminate = true; config.removeListeners(this); delete2(assertListener); |