1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

ctdb-tests: Terminate event loop if lock is no longer held

Signed-off-by: Martin Schwenke <martin@meltin.net>
Reviewed-by: Amitay Isaacs <amitay@gmail.com>
This commit is contained in:
Martin Schwenke 2022-02-28 16:11:18 +11:00 committed by Martin Schwenke
parent 061315cc79
commit 25d32ae97a

View File

@ -242,7 +242,7 @@ static void do_lock_wait_time(struct do_lock_context *dl,
&done);
assert(tt != NULL);
while (! done) {
while (!done && dl->mh != NULL) {
tevent_loop_once(dl->ctdb->ev);
}
}