Skip to content

Commit 16e983a

Browse files
committed
Remove terminate method from SeriousPythonAndroid
The terminate() override and its related comments were removed from SeriousPythonAndroid. This simplifies the class and removes the process termination logic previously handled via methodChannel.
1 parent b69fc2d commit 16e983a

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

src/serious_python_android/lib/serious_python_android.dart

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -96,12 +96,4 @@ class SeriousPythonAndroid extends SeriousPythonPlatform {
9696
return runPythonProgramFFI(
9797
sync ?? false, "libpython3.12.so", appPath, script ?? "");
9898
}
99-
100-
@override
101-
void terminate() {
102-
// CPython is embedded in-process; after Flutter engine/Dart isolate restarts,
103-
// native CPython state (including the GIL) can be left in a bad state.
104-
// Killing the process is the most reliable way to guarantee a clean start.
105-
methodChannel.invokeMethod<String>('terminate');
106-
}
10799
}

0 commit comments

Comments
 (0)