From 95606ffb102f38e2b70e5d2ddad6155a66b7e0bb Mon Sep 17 00:00:00 2001 From: John Sully Date: Fri, 23 Oct 2020 20:21:49 +0000 Subject: [PATCH] Allow the locker to be used even without a client Former-commit-id: 041446005b03121adf7ac061bd0fd2ec70d9418e --- src/aelocker.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/aelocker.h b/src/aelocker.h index e854f907b..777be4832 100644 --- a/src/aelocker.h +++ b/src/aelocker.h @@ -9,7 +9,7 @@ public: { } - void arm(client *c, bool fIfNeeded = false) // if a client is passed, then the client is already locked + void arm(client *c = nullptr, bool fIfNeeded = false) // if a client is passed, then the client is already locked { if (m_fArmed) return;