In DNS lookup code, make sure the weak pointer we use lives through the expected scope (if branch)
This commit is contained in:
@ -134,7 +134,7 @@ namespace ix
|
||||
std::string errMsg;
|
||||
struct addrinfo* res = getAddrInfo(hostname, port, errMsg);
|
||||
|
||||
if (self.lock())
|
||||
if (auto lock = self.lock())
|
||||
{
|
||||
// Copy result into the member variables
|
||||
setRes(res);
|
||||
|
@ -6,4 +6,4 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#define IX_WEBSOCKET_VERSION "6.2.1"
|
||||
#define IX_WEBSOCKET_VERSION "6.2.2"
|
||||
|
Reference in New Issue
Block a user