Skip to content

Commit 4ececda

Browse files
everslickme-no-dev
authored andcommitted
fixed crash in mDNS destructor (#2389)
1 parent 8cd331a commit 4ececda

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

libraries/ESP8266mDNS/ESP8266mDNS.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,10 @@ MDNSResponder::~MDNSResponder() {
140140
answer = 0;
141141
}
142142
_answers = 0;
143+
144+
if (_conn) {
145+
_conn->unref();
146+
}
143147
}
144148

145149
bool MDNSResponder::begin(const char* hostName){

0 commit comments

Comments
 (0)