Skip to content

Commit

Permalink
fix crash in crash routine
Browse files Browse the repository at this point in the history
  • Loading branch information
benkuper committed Aug 27, 2024
1 parent 31f0ccf commit 0dd538c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Source/Main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,13 @@ void ChataigneApplication::handleCrashed()
{
crashSent = true;
MatomoAnalytics::getInstance()->log(MatomoAnalytics::CRASH);
MatomoAnalytics::getInstance()->signalThreadShouldExit();
while (MatomoAnalytics::getInstance()->isThreadRunning())
{
//wait until thread is done
Thread::getCurrentThread()->wait(10);
Thread* t = Thread::getCurrentThread();
if (t == nullptr) break;
t->wait(10);
}
}

Expand Down

0 comments on commit 0dd538c

Please sign in to comment.