From 8b5b73508ae241b186d9dbf9350ee052105060be Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 21 Jun 2018 22:32:56 +0300 Subject: [PATCH] Ignore error code of MSG_WAIT_FAILED. GitOrigin-RevId: 501b759e3f1c33ec881723c15f155b0b0b1cf606 --- td/telegram/net/NetQuery.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/td/telegram/net/NetQuery.cpp b/td/telegram/net/NetQuery.cpp index 10a8c5992..f19fbd5b1 100644 --- a/td/telegram/net/NetQuery.cpp +++ b/td/telegram/net/NetQuery.cpp @@ -50,6 +50,9 @@ void NetQuery::set_error(Status status, string source) { if (status.message() == "BOT_METHOD_INVALID") { LOG(ERROR) << "Receive BOT_METHOD_INVALID for query " << format::as_hex(tl_constructor()); } + if (status.message() == "MSG_WAIT_FAILED" && status.code() != 400) { + status = Status::Error(400, "MSG_WAIT_FAILED"); + } set_error_impl(std::move(status), std::move(source)); }