mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-12-24 14:17:46 +00:00
Merge pull request #2132
464afd4d
Ensure DNSResolver destructor runs on exit (Howard Chu)
This commit is contained in:
commit
159a6e9669
1 changed files with 2 additions and 6 deletions
|
@ -307,12 +307,8 @@ DNSResolver& DNSResolver::instance()
|
|||
{
|
||||
boost::lock_guard<boost::mutex> lock(instance_lock);
|
||||
|
||||
static DNSResolver* staticInstance = NULL;
|
||||
if (staticInstance == NULL)
|
||||
{
|
||||
staticInstance = new DNSResolver();
|
||||
}
|
||||
return *staticInstance;
|
||||
static DNSResolver staticInstance;
|
||||
return staticInstance;
|
||||
}
|
||||
|
||||
DNSResolver DNSResolver::create()
|
||||
|
|
Loading…
Reference in a new issue