mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-02 15:35:51 +00:00
Correctly check container lifetime.
This commit is contained in:
@@ -175,10 +175,12 @@ void Session::watchDcKeyChanges() {
|
||||
) | rpl::filter([=](DcId dcId) {
|
||||
return (dcId == _shiftedDcId) || (dcId == BareDcId(_shiftedDcId));
|
||||
}) | rpl::start_with_next([=] {
|
||||
DEBUG_LOG(("AuthKey Info: Session::authKeyCreatedForDC slot, "
|
||||
"emitting authKeyChanged(), dcWithShift %1").arg(_shiftedDcId));
|
||||
DEBUG_LOG(("AuthKey Info: dcTemporaryKeyChanged in Session %1"
|
||||
).arg(_shiftedDcId));
|
||||
if (const auto connection = _connection) {
|
||||
InvokeQueued(connection, [=] {
|
||||
DEBUG_LOG(("AuthKey Info: calling Connection::updateAuthKey in Session %1"
|
||||
).arg(_shiftedDcId));
|
||||
connection->updateAuthKey();
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user