1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-04-19 23:22:16 +03:00

fixed crash in mDNS destructor (#2389)

This commit is contained in:
Clemens Kirchgatterer 2016-08-12 20:51:11 +02:00 committed by Me No Dev
parent 8cd331a8ba
commit 4ececda82b

View File

@ -140,6 +140,10 @@ MDNSResponder::~MDNSResponder() {
answer = 0; answer = 0;
} }
_answers = 0; _answers = 0;
if (_conn) {
_conn->unref();
}
} }
bool MDNSResponder::begin(const char* hostName){ bool MDNSResponder::begin(const char* hostName){