Ensure that updates aren't sent after TDLib is closed just in case.
GitOrigin-RevId: 43777eda7a32dbe956d45685475fa2dae912f968
This commit is contained in:
parent
04025da201
commit
96b6dfde3f
@ -4618,7 +4618,13 @@ Status Td::init(DbKey key) {
|
||||
}
|
||||
|
||||
void Td::send_update(tl_object_ptr<td_api::Update> &&object) {
|
||||
switch (object->get_id()) {
|
||||
auto object_id = object->get_id();
|
||||
if (close_flag_ >= 5 && object_id != td_api::updateAuthorizationState::ID) {
|
||||
// just in case
|
||||
return;
|
||||
}
|
||||
|
||||
switch (object_id) {
|
||||
case td_api::updateFavoriteStickers::ID:
|
||||
case td_api::updateInstalledStickerSets::ID:
|
||||
case td_api::updateRecentStickers::ID:
|
||||
|
Loading…
Reference in New Issue
Block a user