Skip to content

Commit 7ba3265

Browse files
committed
修复linux重启bug
1 parent 6f077c1 commit 7ba3265

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

__init__.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,7 @@ def clean_ram(self, anything, clean_file_cache, clean_processes, clean_dlls, ret
138138
except:
139139
continue
140140
elif system == "Linux":
141-
142-
for process in psutil.process_iter(['pid', 'name']):
143-
try:
144-
if "python" in process.info['name'].lower():
145-
process.send_signal(10)
146-
cleaned_processes += 1
147-
except:
148-
continue
141+
cleaned_processes = 0
149142

150143
if clean_dlls:
151144
try:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[project]
22
name = "comfyui_memory_cleanup"
33
description = "A ComfyUI extension that provides nodes for memory cleanup, including VRAM and RAM cleanup functions to optimize ComfyUI performance during long running workflows."
4-
version = "1.1.0"
4+
version = "1.1.1"
55
dependencies = ["psutil"]
66

77
[project.urls]

0 commit comments

Comments
 (0)