mirror of
https://github.com/k4yt3x/video2x.git
synced 2025-01-04 04:39:10 +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:
|
if locals()[arg] is not None:
|
||||||
execute.extend([locals([arg])])
|
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
|
return_value += subprocess.run(execute, check=True).returncode
|
||||||
|
|
||||||
# print thread exiting message
|
# print thread exiting message
|
||||||
|
Loading…
Reference in New Issue
Block a user