mirror of
https://github.com/gsi-upm/senpy
synced 2024-11-22 16:12:29 +00:00
parent
a0ff528a4b
commit
99403b3443
@ -253,7 +253,7 @@ class Senpy(object):
|
|||||||
logger.error(msg)
|
logger.error(msg)
|
||||||
raise Error(msg)
|
raise Error(msg)
|
||||||
|
|
||||||
if sync:
|
if sync or 'async' in plugin and not plugin.async:
|
||||||
act()
|
act()
|
||||||
else:
|
else:
|
||||||
th = Thread(target=act)
|
th = Thread(target=act)
|
||||||
@ -277,7 +277,7 @@ class Senpy(object):
|
|||||||
"Error deactivating plugin {}: {}".format(plugin.name, ex))
|
"Error deactivating plugin {}: {}".format(plugin.name, ex))
|
||||||
logger.error("Trace: {}".format(traceback.format_exc()))
|
logger.error("Trace: {}".format(traceback.format_exc()))
|
||||||
|
|
||||||
if sync:
|
if sync or 'async' in plugin and not plugin.async:
|
||||||
deact()
|
deact()
|
||||||
else:
|
else:
|
||||||
th = Thread(target=deact)
|
th = Thread(target=deact)
|
||||||
|
Loading…
Reference in New Issue
Block a user