Skip to content

Commit

Permalink
ThreadPool: don't silently ignore non-std exceptions
Browse files Browse the repository at this point in the history
Introduced in 8f6b347 without explanation.

Throwing anything that's not that is a programming mistake that we don't want
to ignore silently. A crash would be ok, because that means we/they can fix
the offending throw.
  • Loading branch information
roberth committed Oct 13, 2024
1 parent 90d6a02 commit 47e3e7a
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/libutil/thread-pool.cc
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,6 @@ void ThreadPool::doWork(bool mainThread)
// Similarly expected.
} catch (std::exception & e) {
ignoreExceptionExceptInterrupt();
} catch (...) {
}
}
}
Expand Down

0 comments on commit 47e3e7a

Please sign in to comment.