diff --git a/net/NetUtil.cpp b/net/NetUtil.cpp index 909ea866a..b57598a78 100644 --- a/net/NetUtil.cpp +++ b/net/NetUtil.cpp @@ -241,7 +241,7 @@ void AsyncDNS::addLookup(const std::string& lookup, const DNSThreadFn& cb, const DNSThreadDumpStateFn& dumpState) { std::unique_lock guard(_lock); - _lookups.emplace(lookup, cb, dumpState); + _lookups.emplace(Lookup({lookup, cb, dumpState})); guard.unlock(); _condition.notify_one(); }