fixed thread-unsafe printing

This commit is contained in:
k4yt3x 2019-08-15 23:56:55 -04:00
parent 47471352ba
commit d9610abae0

View File

@ -76,7 +76,9 @@ class Anime4k:
if locals()[arg] is not None:
execute.extend([locals([arg])])
Avalon.debug_info(f'Executing: {execute}')
self.print_lock.acquire()
Avalon.debug_info(f'Executing: {execute}', )
self.print_lock.release()
return_value += subprocess.run(execute, check=True).returncode
# print thread exiting message