心跳周期小于10min时,运维580秒未收到心跳才重启

rtmpsuck
XI.CHEN 5 months ago
parent 25e465df3b
commit 6e337a986f

@ -390,9 +390,6 @@ public class MpMasterService extends Service {
public boolean shouldSyncTime() { return mSyncTime; }
public void startMpApp() {
if (true) {
return;
}
try {
final Context context = getApplicationContext();
long ts = System.currentTimeMillis();
@ -422,7 +419,7 @@ public class MpMasterService extends Service {
long tempduration = mMpHeartbeatDuration;
if(mMpHeartbeatDuration < 600000)
tempduration = 300000;
tempduration = 290000;
if (mPreviousMpHbTime <= ts && ts - mPreviousMpHbTime > tempduration * 2) {
// MpApp is not running
if (ts - mTimeToStartMpApp >= 1800000) {

Loading…
Cancel
Save