SessionProxy: bugfix

GitOrigin-RevId: f6874238d3aa79e980b3365dc19d9e9e0f0f3c22
This commit is contained in:
Arseny Smirnov 2018-11-02 18:55:55 +03:00
parent 4611f863a8
commit c610593e75

View File

@ -186,7 +186,7 @@ void SessionProxy::open_session(bool force) {
void SessionProxy::update_auth_state() {
auth_state_ = auth_data_->get_auth_state().first;
open_session(true);
open_session();
for (auto &query : pending_queries_) {
query->debug(PSTRING() << get_name() << ": sent to session");
send_closure(session_, &Session::send, std::move(query));