Remove dead process checks for now
This commit is contained in:
parent
e20ade2e95
commit
e154928e54
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue