mirror of
https://github.com/k4yt3x/video2x.git
synced 2025-01-01 10:29:09 +00:00
fixed thread-unsafe printing
This commit is contained in:
parent
47471352ba
commit
d9610abae0
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user