diff --git a/td/telegram/cli.cpp b/td/telegram/cli.cpp index 46bbc1edd..8adaa2fec 100644 --- a/td/telegram/cli.cpp +++ b/td/telegram/cli.cpp @@ -563,6 +563,10 @@ class CliClient final : public Actor { } void quit() { + if (close_flag_) { + return; + } + LOG(WARNING) << "QUIT"; close_flag_ = true; dump_memory_usage();