mirror of
https://github.com/esp8266/Arduino.git
synced 2025-06-13 13:01:55 +03:00
move discard_cb to unref
This commit is contained in:
@ -94,6 +94,7 @@ class ClientContext {
|
||||
if(--_refcnt == 0) {
|
||||
flush();
|
||||
close();
|
||||
if(_discard_cb) _discard_cb(_discard_cb_arg, this);
|
||||
delete this;
|
||||
}
|
||||
}
|
||||
@ -231,7 +232,6 @@ class ClientContext {
|
||||
|
||||
if(pb == 0) // connection closed
|
||||
{
|
||||
if(_discard_cb) _discard_cb(_discard_cb_arg, this);
|
||||
DEBUGV(":rcla\r\n");
|
||||
return abort();
|
||||
}
|
||||
|
Reference in New Issue
Block a user