Skip to content

Commit f4af0fc

Browse files
authored
Merge pull request #4 from cfhamlet/develop
Fix: bug of engine_transport_config
2 parents 9c4611e + b6a8890 commit f4af0fc

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

src/os_m3_engine/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
0.1
1+
0.1.1

src/os_m3_engine/core/engine.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ def __stop(self):
6868

6969
def stop(self):
7070
self.__acquire_start_lock(True, 'Can stop before start')
71-
if not self.__stopped:
72-
self.__stop()
73-
self.__start_lock.release()
71+
try:
72+
if not self.__stopped:
73+
self.__stop()
74+
finally:
75+
self.__start_lock.release()

src/os_m3_engine/launcher.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def create(frontend_cls='os_m3_engine.ootb.StdinFrontend',
8989
default_engine_transport_config = ENGINE_TRANSPORT_BRIDGE_CONFIG \
9090
if backend_cls is not None else ENGINE_TRANSPORT_CONFIG
9191

92-
e_transport_config = engine_backend_config
92+
e_transport_config = engine_transport_config
9393
if engine_transport_config in (ENGINE_TRANSPORT_CONFIG, ENGINE_TRANSPORT_BRIDGE_CONFIG):
9494
e_transport_config = None
9595

0 commit comments

Comments
 (0)