|
|
|
@ -420,7 +420,10 @@ public class MpMasterService extends Service {
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (mPreviousMpHbTime <= ts && ts - mPreviousMpHbTime > mMpHeartbeatDuration * 2) {
|
|
|
|
|
long tempduration = mMpHeartbeatDuration;
|
|
|
|
|
if(mMpHeartbeatDuration < 600000)
|
|
|
|
|
tempduration = 300000;
|
|
|
|
|
if (mPreviousMpHbTime <= ts && ts - mPreviousMpHbTime > tempduration * 2) {
|
|
|
|
|
// MpApp is not running
|
|
|
|
|
if (ts - mTimeToStartMpApp >= 1800000) {
|
|
|
|
|
MicroPhotoContext.restartMpApp(context, "MpMST Keep Alive Detection");
|
|
|
|
|