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