forked from xiaozhi/xiaozhi-esp32
MQTT会话超时与网络错误处理
This commit is contained in:
@@ -302,12 +302,12 @@ void Application::StartListening() {
|
||||
}
|
||||
|
||||
void Application::StopListening() {
|
||||
if (device_state_ == kDeviceStateListening) {
|
||||
Schedule([this]() {
|
||||
Schedule([this]() {
|
||||
if (device_state_ == kDeviceStateListening) {
|
||||
protocol_->SendStopListening();
|
||||
SetDeviceState(kDeviceStateIdle);
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
void Application::Start() {
|
||||
|
||||
Reference in New Issue
Block a user