mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
Fix possible use-after-free in test connections.
This commit is contained in:
parent
b2aac8006c
commit
3e3696298f
1 changed files with 2 additions and 1 deletions
|
@ -189,8 +189,9 @@ void SessionPrivate::appendTestConnection(
|
|||
});
|
||||
});
|
||||
|
||||
const auto protocolDcId = getProtocolDcId();
|
||||
InvokeQueued(_testConnections.back().data, [=] {
|
||||
weak->connectToServer(ip, port, protocolSecret, getProtocolDcId());
|
||||
weak->connectToServer(ip, port, protocolSecret, protocolDcId);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue