Merge branch 'bugfix/tw7058_mode_fatal' into 'master'

[teamwork7058]It causes fatal when switch wifi mode.



See merge request !84
This commit is contained in:
Wu Jian Gang 2016-09-14 17:46:12 +08:00
commit 8051a8b91e

View File

@ -1070,9 +1070,8 @@ void dhcps_stop(struct netif *netif)
return; return;
} }
udp_disconnect(pcb_dhcps);
if (apnetif->dhcps_pcb != NULL) { if (apnetif->dhcps_pcb != NULL) {
udp_disconnect(apnetif->dhcps_pcb);
udp_remove(apnetif->dhcps_pcb); udp_remove(apnetif->dhcps_pcb);
apnetif->dhcps_pcb = NULL; apnetif->dhcps_pcb = NULL;
} }