MCPcopy Create free account
hub / github.com/TelegramMessenger/cocoon / send_auth_fail

Method send_auth_fail

runners/proxy/ProxyInboundClientConnection.cpp:166–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

164}
165
166void ProxyInboundClientConnection::send_auth_fail(td::Status error, td::Promise<td::BufferSlice> promise) {
167 promise.set_value(cocoon::create_serialize_tl_object<cocoon_api::client_authorizationWithProxyFailed>(
168 error.code(), error.message().str()));
169 state_ = State::Failed;
170 remove_connecting_info();
171 fail_connection(std::move(error));
172}
173
174void ProxyInboundClientConnection::received_register_message(std::shared_ptr<ProxyClientInfo> client_info) {
175 if (state_ != State::Auth) {

Callers

nothing calls this directly

Calls 1

codeMethod · 0.80

Tested by

no test coverage detected