Commit c450d77e authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[2332] changed one exception to assert() based on review discussion

parent 8c02f8a8
......@@ -111,9 +111,10 @@ Mutex::~Mutex() {
Mutex::postLockAction() {
if (impl_->locked_count != 0) {
isc_throw(isc::InvalidOperation, "Lock attempt for locked mutex");
// This assertion would fail only in non-debugging mode, in which case
// this method wouldn't be called either, so we simply assert the
// condition.
assert(impl_->locked_count == 0);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment