Skip to content

Commit 0905a5d

Browse files
committed
Use process.kill instead of process manager killPid
1 parent 0a85ddf commit 0905a5d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

pkgs/dart_mcp_server/lib/src/mixins/flutter_launcher.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ base mixin FlutterLauncherSupport
227227
} catch (e, s) {
228228
log(LoggingLevel.error, 'Error launching Flutter application: $e\n$s');
229229
if (process != null) {
230-
processManager.killPid(process.pid);
230+
process.kill();
231231
// The exitCode handler will perform the rest of the cleanup.
232232
}
233233
return CallToolResult(

pkgs/dart_mcp_server/test/tools/flutter_launcher_test.dart

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,6 @@ void main() {
460460
'TimeoutException',
461461
]),
462462
);
463-
test.expect(mockProcessManager.killedPids, [processPid]);
464463

465464
server.shutdown();
466465
client.shutdown();

0 commit comments

Comments
 (0)