1
0
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:
ficeto
2015-05-12 14:22:16 +03:00
parent 88c6ee418d
commit 1707d3d036

View File

@ -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();
}