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(),
|
StateMachine.PROC = await Process.start(settings.getProtonExecutablePath(),
|
||||||
args, // Run arbitrary command with arguments
|
args, // Run arbitrary command with arguments
|
||||||
environment: env,
|
environment: env,
|
||||||
workingDirectory: workingDir);
|
workingDirectory: workingDir,
|
||||||
|
mode: ProcessStartMode.normal);
|
||||||
|
|
||||||
StateMachine.monitorProcess();
|
StateMachine.monitorProcess();
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
|
|
@ -110,7 +110,9 @@ class StateMachine {
|
||||||
Timer.periodic(Duration(seconds: 30), (timer) {
|
Timer.periodic(Duration(seconds: 30), (timer) {
|
||||||
timer.cancel();
|
timer.cancel();
|
||||||
|
|
||||||
PROC!.kill();
|
print("Sending killswitch to server");
|
||||||
|
|
||||||
|
PROC!.kill(ProcessSignal.sigkill);
|
||||||
});
|
});
|
||||||
|
|
||||||
changeState(States.Inactive);
|
changeState(States.Inactive);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue