Join loading thread on exit.

This commit is contained in:
Bartosz Taudul 2020-07-19 14:39:50 +02:00
parent 7b00812fa7
commit aa2757526a

View File

@ -349,6 +349,8 @@ int main( int argc, char** argv )
} }
} }
if( loadThread.joinable() ) loadThread.join();
{ {
FILE* f = fopen( winPosFile.c_str(), "wb" ); FILE* f = fopen( winPosFile.c_str(), "wb" );
if( f ) if( f )