mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-15 00:02:49 +03:00
fix exception 28 in AP + STA mode and STA disconnect
UDP triggers exception 28
This commit is contained in:
@ -90,14 +90,17 @@ class ClientContext {
|
||||
}
|
||||
|
||||
void unref() {
|
||||
if(this != 0) {
|
||||
DEBUGV(":ur %d\r\n", _refcnt);
|
||||
if(--_refcnt == 0) {
|
||||
flush();
|
||||
close();
|
||||
if(_discard_cb) _discard_cb(_discard_cb_arg, this);
|
||||
if(_discard_cb)
|
||||
_discard_cb(_discard_cb_arg, this);
|
||||
delete this;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void setNoDelay(bool nodelay){
|
||||
if(!_pcb) return;
|
||||
|
@ -77,12 +77,13 @@ public:
|
||||
|
||||
void unref()
|
||||
{
|
||||
if(this != 0) {
|
||||
DEBUGV(":ur %d\r\n", _refcnt);
|
||||
if (--_refcnt == 0)
|
||||
{
|
||||
if(--_refcnt == 0) {
|
||||
delete this;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
bool connect(ip_addr_t addr, uint16_t port)
|
||||
{
|
||||
|
Reference in New Issue
Block a user