修复关机为最高优先级
authorxue <2144439972@qq.com>
Tue, 16 Dec 2025 08:57:52 +0000 (16:57 +0800)
committerxue <2144439972@qq.com>
Tue, 16 Dec 2025 08:57:52 +0000 (16:57 +0800)
code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/src/ThunderBirdPresenter.cpp

index b43e9b9..b53e79d 100644 (file)
@@ -246,6 +246,8 @@ namespace OHOS
             AI_ForceInterrupt();
             ln_ws_send_voice_chat_interrupt("关机");
             do_custom_cmd_service_check_msg(CUSTOM_CMD_MSG_AUDIO_DEINIT, NULL, 0);
+            // 关闭WebSocket连接,屏蔽小程序下发的命令
+            ln_ws_stop();
             NativeAbility::GetInstance().SwitchSlice(VIEW_REBOOT);
             return true;
         }