Remove dead process checks for now

This commit is contained in:
zontreck 2024-06-15 14:43:36 -07:00
parent e20ade2e95
commit e154928e54

View file

@ -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