From fea600a56cac713f19d495528cf8a25197d8f674 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20Villac=C3=ADs=20Lasso?= Date: Thu, 29 Jul 2021 18:01:10 -0500 Subject: [PATCH] Do not remove callbacks on socket error either The general rule is that at no time must callbacks be removed from the AsyncTCP object while the object is still live. Clients expect this from the AsyncTCP library. --- src/AsyncTCP.cpp | 1 - 1 file changed, 1 deletion(-) diff --git a/src/AsyncTCP.cpp b/src/AsyncTCP.cpp index eaf3133..a44ebd5 100644 --- a/src/AsyncTCP.cpp +++ b/src/AsyncTCP.cpp @@ -755,7 +755,6 @@ void AsyncClient::_error(int8_t err) _clearWriteQueue(); if (_error_cb) _error_cb(_error_cb_arg, this, err); if (_discard_cb) _discard_cb(_discard_cb_arg, this); - _removeAllCallbacks(); } size_t AsyncClient::space()