mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-08-30 14:17:45 +00:00
Fix possible use-after-free in test connections.
This commit is contained in:
@@ -189,8 +189,9 @@ void SessionPrivate::appendTestConnection(
|
|||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
const auto protocolDcId = getProtocolDcId();
|
||||||
InvokeQueued(_testConnections.back().data, [=] {
|
InvokeQueued(_testConnections.back().data, [=] {
|
||||||
weak->connectToServer(ip, port, protocolSecret, getProtocolDcId());
|
weak->connectToServer(ip, port, protocolSecret, protocolDcId);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user