mirror of
https://git.datalinker.icu/comfyanonymous/ComfyUI
synced 2026-10-05 15:57:03 +08:00
Fix skip_until_exit logic bug breaking injection after first run of model
This commit is contained in:
parent
5f450d3351
commit
f28d892c16
@ -180,7 +180,10 @@ class AutoPatcherEjector:
|
|||||||
|
|
||||||
def __exit__(self, *args):
|
def __exit__(self, *args):
|
||||||
if self.was_injected:
|
if self.was_injected:
|
||||||
if self.skip_until_exit or not self.model.skip_injection:
|
if self.skip_until_exit:
|
||||||
|
self.model.skip_injection = self.prev_skip_injection
|
||||||
|
self.model.inject_model()
|
||||||
|
elif not self.model.skip_injection:
|
||||||
self.model.inject_model()
|
self.model.inject_model()
|
||||||
self.model.skip_injection = self.prev_skip_injection
|
self.model.skip_injection = self.prev_skip_injection
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user