Make a few more debug changes
This commit is contained in:
parent
6eb8d78036
commit
ff94b3a0b1
2 changed files with 5 additions and 2 deletions
|
@ -58,7 +58,8 @@ Future<void> runDetachedProton(
|
|||
StateMachine.PROC = await Process.start(settings.getProtonExecutablePath(),
|
||||
args, // Run arbitrary command with arguments
|
||||
environment: env,
|
||||
workingDirectory: workingDir);
|
||||
workingDirectory: workingDir,
|
||||
mode: ProcessStartMode.normal);
|
||||
|
||||
StateMachine.monitorProcess();
|
||||
} catch (e) {
|
||||
|
|
|
@ -110,7 +110,9 @@ class StateMachine {
|
|||
Timer.periodic(Duration(seconds: 30), (timer) {
|
||||
timer.cancel();
|
||||
|
||||
PROC!.kill();
|
||||
print("Sending killswitch to server");
|
||||
|
||||
PROC!.kill(ProcessSignal.sigkill);
|
||||
});
|
||||
|
||||
changeState(States.Inactive);
|
||||
|
|
Loading…
Reference in a new issue