summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--python-modules/ezbench/smartezbench.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python-modules/ezbench/smartezbench.py b/python-modules/ezbench/smartezbench.py
index 40b156b..fe1da14 100644
--- a/python-modules/ezbench/smartezbench.py
+++ b/python-modules/ezbench/smartezbench.py
@@ -454,7 +454,7 @@ class SmartEzbench:
def __reload_state(self, keep_lock=False):
self.__grab_lock()
- if self.state_lock.ref_cnt() == 1:
+ if self.state_lock.ref_cnt() == 1 or self.readonly:
ret = self.__reload_state_unlocked()
else:
print("WARNING: Recursive call to __reload_state()")