diff --git a/td/telegram/net/Session.cpp b/td/telegram/net/Session.cpp index 4fb4c768..70fb8b7f 100644 --- a/td/telegram/net/Session.cpp +++ b/td/telegram/net/Session.cpp @@ -85,6 +85,7 @@ class GenAuthKeyActor : public Actor { if (handshake_promise_) { handshake_promise_.set_error(Status::Error(1, "Cancelled")); } + stop(); } void on_connection(Result> r_raw_connection, bool dummy) {