Dont kill other processes when starting desktop application (#40472)

This commit is contained in:
Jonah Williams
2019-09-16 13:12:50 -07:00
committed by GitHub
parent 9dd8c3a31c
commit 79107e0fe2
3 changed files with 0 additions and 5 deletions

View File

@@ -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)
]);

View File

@@ -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
]);

View File

@@ -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)
]);