SessionProxy: bugfix
GitOrigin-RevId: b2cdc985d4465cdd19f85d024a5de9d8e882e8f0
This commit is contained in:
parent
1cb68fab96
commit
03604bb367
@ -154,14 +154,16 @@ void SessionProxy::open_session(bool force) {
|
|||||||
if (!session_.empty()) {
|
if (!session_.empty()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (auth_state_ == AuthState::Empty && need_destroy_) {
|
if (!force) {
|
||||||
return;
|
if (auth_state_ == AuthState::Empty && need_destroy_) {
|
||||||
}
|
return;
|
||||||
if (auth_state_ != AuthState::OK && need_wait_for_key_) {
|
}
|
||||||
return;
|
if (auth_state_ != AuthState::OK && need_wait_for_key_) {
|
||||||
}
|
return;
|
||||||
if (!is_main_ && pending_queries_.empty() && !need_destroy_) {
|
}
|
||||||
return;
|
if (!is_main_ && pending_queries_.empty() && !need_destroy_) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
CHECK(session_.empty());
|
CHECK(session_.empty());
|
||||||
|
Loading…
Reference in New Issue
Block a user