SessionProxy: ignore redundant update_destroy calls
GitOrigin-RevId: 748222a69a8808d150296d2ee8298598d98a1de6
This commit is contained in:
parent
4455b66e8b
commit
71867f372d
@ -138,6 +138,10 @@ void SessionProxy::update_main_flag(bool is_main) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void SessionProxy::update_destroy(bool need_destroy) {
|
void SessionProxy::update_destroy(bool need_destroy) {
|
||||||
|
if (need_destroy_ == need_destroy) {
|
||||||
|
LOG(INFO) << "Ignore reduntant update_destroy(" << need_destroy << ")";
|
||||||
|
return;
|
||||||
|
}
|
||||||
need_destroy_ = need_destroy;
|
need_destroy_ = need_destroy;
|
||||||
close_session();
|
close_session();
|
||||||
open_session();
|
open_session();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user