diff --git a/mpmaster/src/main/java/com/xypower/mpmaster/MpMasterService.java b/mpmaster/src/main/java/com/xypower/mpmaster/MpMasterService.java index c599aad3..ab0e7e05 100644 --- a/mpmaster/src/main/java/com/xypower/mpmaster/MpMasterService.java +++ b/mpmaster/src/main/java/com/xypower/mpmaster/MpMasterService.java @@ -419,7 +419,7 @@ public class MpMasterService extends Service { tempduration = 290000; if (mPreviousMpHbTime <= ts && ts - mPreviousMpHbTime > tempduration * 2) { // MpApp is not running - if (ts - mTimeToStartMpApp >= 1800000) { + if (ts - mTimeToStartMpApp >= 1800000) { // 30 minutes 30 * 60 * 1000 MicroPhotoContext.restartMpApp(context, "MpMST Keep Alive Detection"); logger.warning("Restart MpAPP as it is NOT Running Prev MPAPP HB=" + @@ -445,7 +445,7 @@ public class MpMasterService extends Service { // ((ts - modifiedTimeOfUpload) > mTimeOfMpAppAlive * 4) ) { - if (ts - mTimeToStartMpApp >= 1800000) { + 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";