Replace std::bind in MDNSResponder for UDP context (#1875)
This commit is contained in:
parent
d2461a14ad
commit
0e4fd0587b
1 changed files with 1 additions and 1 deletions
|
|
@ -161,7 +161,7 @@ bool MDNSResponder::_allocUDPContext(void) {
|
|||
|
||||
if (m_pUDPContext->listen(IP4_ADDR_ANY, DNS_MQUERY_PORT)) {
|
||||
m_pUDPContext->setMulticastTTL(MDNS_MULTICAST_TTL);
|
||||
m_pUDPContext->onRx(std::bind(&MDNSResponder::_callProcess, this));
|
||||
m_pUDPContext->onRx([this] { this->_callProcess(); });
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue