diff --git a/mpmaster/src/main/java/com/xypower/mpmaster/MpMasterService.java b/mpmaster/src/main/java/com/xypower/mpmaster/MpMasterService.java index ef029acc..75768763 100644 --- a/mpmaster/src/main/java/com/xypower/mpmaster/MpMasterService.java +++ b/mpmaster/src/main/java/com/xypower/mpmaster/MpMasterService.java @@ -433,7 +433,7 @@ public class MpMasterService extends Service { if (mPreviousMpHbTime <= ts && ts - mPreviousMpHbTime > mMpHeartbeatDuration * 2) { // MpApp is not running - if (ts - mTimeToStartMpApp >= 30000) { + if (ts - mTimeToStartMpApp >= 1800000) { // 30 minutes 30 * 60 * 1000 MicroPhotoContext.restartMpApp(context, "MpMST Keep Alive Detection"); mTimeToStartMpApp = ts; logger.warning("Restart MpAPP as it is NOT Running Prev MPAPP HB=" + @@ -455,7 +455,7 @@ public class MpMasterService extends Service { ((ts - modifiedTimeOfPhoto) > mTimeOfMpAppAlive * 4) || ((ts - modifiedTimeOfUpload) > mTimeOfMpAppAlive * 4)) { - if (ts - mTimeToStartMpApp >= 30000) { + if (ts - mTimeToStartMpApp >= 1800000) { // 30 minutes 30 * 60 * 1000 String msg = "Restart MpAPP as it is NOT Running hb=" + Long.toString(ts - modifiedTimeOfHb) + " taking=" + Long.toString(ts - modifiedTimeOfPhoto) + " sending=" + Long.toString(ts - modifiedTimeOfUpload) + " Will restart MpApp in " + Long.toString(mDelayedRestartMpTime / 1000) + " seconds";