if manual_locking:
for seq in self.model_sequence:
for m in self.models[seq]:
m.release_lock()
Always being True if there is one model from this part of the code:
if len(self.model_sequence) > 1:
manual_locking = False
self.logger.Debug(3,'Using automatic locking as we are switching between models')
else:
manual_locking = True
self.logger.Debug(3,'Using manual locking as we are only using one model')
for seq in self.model_sequence:
self.ml_options[seq]['auto_lock'] = False
With ml_sequence as such:
The following error is returned:
Zoneminder Version: 1.34.22
Adding
object
to the model_sequence a second time resolves the issueThis appears to be caused by
Always being True if there is one model from this part of the code: