Fix bug program crash for update wifi list when load wifi list

This commit is contained in:
chenlelin 2021-01-02 10:29:10 +08:00
parent b7b172933f
commit 750e2da029
1 changed files with 4 additions and 0 deletions

View File

@ -2569,6 +2569,10 @@ void MainWindow::onExternalWifiSwitchChange(bool wifiEnabled)
void MainWindow::on_checkWifiListChanged()
{
if (is_init_wifi_list || is_connect_hide_wifi) {
return; //遇到启动软件第一次加载wifi列表的时候或正在连接隐藏wifi停止更新
}
if (is_stop_check_net_state==0 && this->is_btnWifiList_clicked==1 && this->isVisible()) {
BackThread *loop_bt = new BackThread();
IFace *loop_iface = loop_bt->execGetIface();