tg_cli: do not call quit twice.

GitOrigin-RevId: 66de7284d0d4bb7006f5be9fdad74150bca3910f
This commit is contained in:
levlam 2018-01-24 22:47:59 +03:00
parent 21285a11e8
commit cc64bd168b

View File

@ -563,6 +563,10 @@ class CliClient final : public Actor {
} }
void quit() { void quit() {
if (close_flag_) {
return;
}
LOG(WARNING) << "QUIT"; LOG(WARNING) << "QUIT";
close_flag_ = true; close_flag_ = true;
dump_memory_usage(); dump_memory_usage();