minor fix

GitOrigin-RevId: 6e1b3a3cebcea9311898e3a87da2d7a90b0d0305
This commit is contained in:
Arseny Smirnov 2019-03-17 23:29:32 +13:00
parent 625359f18f
commit caccb7a9e1

View File

@ -1200,12 +1200,12 @@ void Session::loop() {
connection_send_bind_key(&main_connection_);
need_flush = true;
}
}
if (can_destroy_auth_key()) {
if (main_connection_.connection) {
main_connection_.connection->destroy_key();
}
}
}
if (need_flush) {
connection_flush(&main_connection_);
need_flush = false;