diff --git a/td/telegram/PollManager.cpp b/td/telegram/PollManager.cpp index ba8491271..1d3e8d2c7 100644 --- a/td/telegram/PollManager.cpp +++ b/td/telegram/PollManager.cpp @@ -614,7 +614,9 @@ PollId PollManager::create_poll(string &&question, vector &&options, boo } void PollManager::register_poll(PollId poll_id, FullMessageId full_message_id, const char *source) { - CHECK(have_poll(poll_id)); + if(!(have_poll(poll_id))) { + return; + } if (full_message_id.get_message_id().is_scheduled()) { return; } @@ -633,7 +635,9 @@ void PollManager::register_poll(PollId poll_id, FullMessageId full_message_id, c } void PollManager::unregister_poll(PollId poll_id, FullMessageId full_message_id, const char *source) { - CHECK(have_poll(poll_id)); + if (!(have_poll(poll_id))) { + return; + } if (full_message_id.get_message_id().is_scheduled()) { return; }