Do not erase DeleteMessage log event while closing.

GitOrigin-RevId: 588eeb309964f489186c4614d0dca4c820aedf39
This commit is contained in:
levlam 2019-04-10 13:42:46 +03:00
parent 2ccd37584f
commit 4859485768

View File

@ -23018,7 +23018,7 @@ void MessagesManager::do_delete_message_logevent(const DeleteMessageLogEvent &lo
MultiPromiseActorSafe mpas{"DeleteMessageMultiPromiseActor"};
mpas.add_promise(PromiseCreator::lambda([logevent_id](Result<Unit> result) {
if (result.is_error()) {
if (result.is_error() || G()->close_flag()) {
return;
}
binlog_erase(G()->td_db()->get_binlog(), logevent_id);