Merge pull request #150 from vit-/fix/plugin-execution-context-shutdown
Check if PluginExecutionContext was started before shutting it down.
This commit is contained in:
@ -16,8 +16,9 @@ class PluginExecutionContext(LoopingExecutionContext):
|
|||||||
self.wrapped.initialize()
|
self.wrapped.initialize()
|
||||||
|
|
||||||
def shutdown(self):
|
def shutdown(self):
|
||||||
with recoverable(self.handle_error):
|
if self.started:
|
||||||
self.wrapped.finalize()
|
with recoverable(self.handle_error):
|
||||||
|
self.wrapped.finalize()
|
||||||
self.alive = False
|
self.alive = False
|
||||||
|
|
||||||
def step(self):
|
def step(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user