diff --git a/mpmaster/src/main/java/com/xypower/mpmaster/MpMasterService.java b/mpmaster/src/main/java/com/xypower/mpmaster/MpMasterService.java index a58badd5..6b342c7a 100644 --- a/mpmaster/src/main/java/com/xypower/mpmaster/MpMasterService.java +++ b/mpmaster/src/main/java/com/xypower/mpmaster/MpMasterService.java @@ -893,7 +893,7 @@ public class MpMasterService extends Service { if (intent == null) { stopForeground(true); - stopSelf(); + stopSelf(startId); return START_NOT_STICKY; } @@ -931,14 +931,14 @@ public class MpMasterService extends Service { break; case ACTION_STOP: stopForeground(true); - stopSelf(); + stopSelf(startId); break; default: stopForeground(true); stopSelf(); } - return START_NOT_STICKY; + return START_REDELIVER_INTENT; } private void connect() {