Dont kill other processes when starting desktop application (#40472)
This commit is contained in:
@@ -86,7 +86,6 @@ class LinuxDevice extends Device {
|
||||
target: mainPath,
|
||||
);
|
||||
}
|
||||
await stopApp(package);
|
||||
final Process process = await processManager.start(<String>[
|
||||
package.executable(debuggingOptions?.buildInfo?.mode)
|
||||
]);
|
||||
|
||||
@@ -79,7 +79,6 @@ class MacOSDevice extends Device {
|
||||
bool prebuiltApplication = false,
|
||||
bool ipv6 = false,
|
||||
}) async {
|
||||
// Stop any running applications with the same executable.
|
||||
if (!prebuiltApplication) {
|
||||
Cache.releaseLockEarly();
|
||||
await buildMacOS(
|
||||
@@ -96,9 +95,7 @@ class MacOSDevice extends Device {
|
||||
return LaunchResult.failed();
|
||||
}
|
||||
|
||||
// Make sure to call stop app after we've built.
|
||||
_lastBuiltMode = debuggingOptions?.buildInfo?.mode;
|
||||
await stopApp(package);
|
||||
final Process process = await processManager.start(<String>[
|
||||
executable
|
||||
]);
|
||||
|
||||
@@ -87,7 +87,6 @@ class WindowsDevice extends Device {
|
||||
target: mainPath,
|
||||
);
|
||||
}
|
||||
await stopApp(package);
|
||||
final Process process = await processUtils.start(<String>[
|
||||
package.executable(debuggingOptions?.buildInfo?.mode)
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user