diff options
author | Tiger Wang <ziwei.tiger@outlook.com> | 2020-05-20 20:59:46 +0200 |
---|---|---|
committer | Tiger Wang <ziwei.tiger@outlook.com> | 2020-07-26 19:57:48 +0200 |
commit | 072fdf348826db6bc75207540c55e8e275227516 (patch) | |
tree | 433cf29095b8796dd737790fa0be693b1b836613 /src/OSSupport/IPLookup.cpp | |
parent | 1.14 connection support (diff) | |
download | cuberite-072fdf348826db6bc75207540c55e8e275227516.tar cuberite-072fdf348826db6bc75207540c55e8e275227516.tar.gz cuberite-072fdf348826db6bc75207540c55e8e275227516.tar.bz2 cuberite-072fdf348826db6bc75207540c55e8e275227516.tar.lz cuberite-072fdf348826db6bc75207540c55e8e275227516.tar.xz cuberite-072fdf348826db6bc75207540c55e8e275227516.tar.zst cuberite-072fdf348826db6bc75207540c55e8e275227516.zip |
Diffstat (limited to '')
-rw-r--r-- | src/OSSupport/IPLookup.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/OSSupport/IPLookup.cpp b/src/OSSupport/IPLookup.cpp index f730110b9..066573a72 100644 --- a/src/OSSupport/IPLookup.cpp +++ b/src/OSSupport/IPLookup.cpp @@ -32,7 +32,7 @@ void cIPLookup::Lookup(const AString & a_IP, cNetwork::cResolveNameCallbacksPtr cIPLookupPtr Lookup{ new cIPLookup(a_IP, std::move(a_Callbacks)) }; // Cannot use std::make_shared here, constructor is not accessible // Note the Lookup object is owned solely by this lambda which is destroyed after it runs - cNetworkSingleton::Get().GetLookupThread().ScheduleLookup([=]() + /* cNetworkSingleton::Get().GetLookupThread().ScheduleLookup( */[=]() { sockaddr_storage sa; int salen = sizeof(sa); @@ -58,7 +58,7 @@ void cIPLookup::Lookup(const AString & a_IP, cNetwork::cResolveNameCallbacksPtr 0 ); Lookup->Callback(ErrCode, Hostname); - }); + }(); } |