🌐 AI搜索 & 代理 主页
Skip to content

Commit f463520

Browse files
committed
Activate shutdown
1 parent 6f1219f commit f463520

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythonnet/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def unload():
6363
global _RUNTIME
6464
if _LOADER_ASSEMBLY is not None:
6565
func = _LOADER_ASSEMBLY["Python.Runtime.Loader.Shutdown"]
66-
if func(b"") != 0:
66+
if func(b"full_shutdown") != 0:
6767
raise RuntimeError("Failed to call Python.NET shutdown")
6868

6969
if _RUNTIME is not None:

0 commit comments

Comments
 (0)