1
0
mirror of https://github.com/dkmstr/openuds.git synced 2025-01-22 22:03:54 +03:00

Some minor case fixes on dynamic

This commit is contained in:
Adolfo Gómez García 2024-03-23 03:41:56 +01:00
parent e70dcd4f23
commit 8f98314c97
No known key found for this signature in database
GPG Key ID: DD1ABF20724CDA23
2 changed files with 6 additions and 6 deletions

View File

@ -154,9 +154,9 @@ class DynamicPublication(services.Publication, autoserializable.AutoSerializable
if op != Operation.WAIT:
# All operations except WAIT will check against checks counter
state = self._inc_checks_counter(self._op2str(op))
if state is not None:
return state # Error, Finished or None
counter_state = self._inc_checks_counter(self._op2str(op))
if counter_state is not None:
return counter_state # Error, Finished or None
try:
if op.is_custom():

View File

@ -358,9 +358,9 @@ class DynamicUserService(services.UserService, autoserializable.AutoSerializable
if op != Operation.WAIT:
# All operations except WAIT will check against checks counter
state = self._inc_checks_counter(self._op2str(op))
if state is not None:
return state # Error, Finished or None
counter_state = self._inc_checks_counter(self._op2str(op))
if counter_state is not None:
return counter_state # Error, Finished or None
try:
if op.is_custom():