File tree Expand file tree Collapse file tree 1 file changed +5
-13
lines changed
libraries/ESP8266WiFi/src Expand file tree Collapse file tree 1 file changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -339,24 +339,16 @@ void WiFiClient::_s_err(void* arg, int8_t err)
339
339
void WiFiClient::stopAll ()
340
340
{
341
341
for (WiFiClient* it = _s_first; it; it = it->_next ) {
342
- ClientContext* c = it->_client ;
343
- if (c) {
344
- c->abort ();
345
- c->unref ();
346
- it->_client = 0 ;
347
- }
342
+ it->stop ();
348
343
}
349
344
}
350
345
351
346
352
- void WiFiClient::stopAllExcept (WiFiClient * exC) {
347
+ void WiFiClient::stopAllExcept (WiFiClient* except)
348
+ {
353
349
for (WiFiClient* it = _s_first; it; it = it->_next ) {
354
- ClientContext* c = it->_client ;
355
-
356
- if (c && c != exC->_client ) {
357
- c->abort ();
358
- c->unref ();
359
- it->_client = 0 ;
350
+ if (it != except) {
351
+ it->stop ();
360
352
}
361
353
}
362
354
}
You can’t perform that action at this time.
0 commit comments