From e154928e54ff80c4d3f9a588cc8a97e762b88cff Mon Sep 17 00:00:00 2001 From: zontreck Date: Sat, 15 Jun 2024 14:43:36 -0700 Subject: [PATCH] Remove dead process checks for now --- lib/statemachine.dart | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/statemachine.dart b/lib/statemachine.dart index 83a4d55..9e6d658 100644 --- a/lib/statemachine.dart +++ b/lib/statemachine.dart @@ -1,6 +1,7 @@ import 'dart:async'; import 'dart:io'; +import 'package:dcli/dcli.dart'; import 'package:libac_dart/packets/packets.dart'; import 'package:libac_dart/utils/IOTools.dart'; import 'package:libac_dart/utils/TimeUtils.dart'; @@ -265,9 +266,11 @@ class StateMachine { } // Ping the server to check if it is alive + /* if (SessionData.timeSinceLastPing.getTotalSeconds() > 60 && SessionData.operating_time.getTotalSeconds() > (10 * 60)) { SessionData.timeSinceLastPing.apply(0); + int pid = PROC!.pid; try { Socket sock = await Socket.connect( @@ -278,7 +281,7 @@ class StateMachine { DeadProcKillswitch.complete(); } - } + }*/ if (send && SessionData.enableRestartTimer) { // Send the alert message