Skip to content

Commit 01c64fe

Browse files
committed
Fixed bug #8315 : Crash at database restore due to failed system call
1 parent df885d5 commit 01c64fe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/burp/BurpTasks.h

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,13 @@ class IOBuffer
545545
if (!m_mutex.tryEnter(FB_FUNCTION))
546546
return;
547547

548+
fb_assert(m_locked >= 0);
549+
const bool lockedByMe = (m_locked != 0);
550+
548551
m_mutex.leave();
552+
553+
if (!lockedByMe)
554+
return;
549555
}
550556

551557
fb_assert(m_locked > 0);

0 commit comments

Comments
 (0)