safe cleanup to avoid potential problems

This commit is contained in:
lllyasviel
2024-02-22 01:28:38 -08:00
parent 4080e25805
commit 539bc5035d
3 changed files with 18 additions and 8 deletions

View File

@@ -40,12 +40,6 @@ def get_new_stream():
return None
def synchronize_current_stream():
global current_stream
if current_stream is not None:
current_stream.synchronize()
if shared.opts.use_non_streamlined_lowvram:
current_stream = None
mover_stream = None