Ignore error code of MSG_WAIT_FAILED.

GitOrigin-RevId: 501b759e3f1c33ec881723c15f155b0b0b1cf606
This commit is contained in:
levlam 2018-06-21 22:32:56 +03:00
parent 44bc3d5f08
commit 8b5b73508a

View File

@ -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));
}