Skip to content

Commit

Permalink
COMMON: Catch exceptions thrown in the Thread destructor
Browse files Browse the repository at this point in the history
This fixes Coverity Scan issue #173473.
  • Loading branch information
DrMcCoy committed Dec 25, 2016
1 parent b32e3c1 commit 59a94a6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/common/thread.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ Thread::Thread() : _shouldQuit(false) {
}

Thread::~Thread() {
destroyThread();
try {
destroyThread();
} catch (...) {
}
}

void Thread::createThread() {
Expand Down

0 comments on commit 59a94a6

Please sign in to comment.