This commit is contained in:
TenderIronh
2026-05-15 17:53:49 +08:00
parent 12393f00c5
commit 07836fc162
7 changed files with 51 additions and 12 deletions
+7 -2
View File
@@ -147,12 +147,17 @@ func handlePush(subType uint16, msg []byte) error {
gLog.i("MsgPushUpdate")
err := update(gConf.Network.ServerHost, gConf.Network.ServerPort)
if err == nil {
os.Exit(9) // 9 tell daemon this exit because of update
if !isAndroid() {
os.Exit(9) // 9 tell daemon this exit because of update
}
}
return err
case MsgPushRestart:
gLog.i("MsgPushRestart")
os.Exit(0)
if !isAndroid() {
os.Exit(0)
}
return err
case MsgPushReportApps:
err = handleReportApps()