Commit 99403b34 authored by J. Fernando Sánchez's avatar J. Fernando Sánchez
Browse files

Fix for async

Should fix #11
parent a0ff528a
......@@ -253,7 +253,7 @@ class Senpy(object):
logger.error(msg)
raise Error(msg)
if sync:
if sync or 'async' in plugin and not plugin.async:
act()
else:
th = Thread(target=act)
......@@ -277,7 +277,7 @@ class Senpy(object):
"Error deactivating plugin {}: {}".format(plugin.name, ex))
logger.error("Trace: {}".format(traceback.format_exc()))
if sync:
if sync or 'async' in plugin and not plugin.async:
deact()
else:
th = Thread(target=deact)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment