Check for duplicate calls to init().
This commit is contained in:
parent
17275fe422
commit
dc79b35570
@ -200,7 +200,7 @@ void NotificationManager::start_up() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void NotificationManager::init() {
|
void NotificationManager::init() {
|
||||||
if (is_disabled()) {
|
if (is_disabled() || is_inited_) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1295,7 +1295,7 @@ void StickersManager::start_up() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void StickersManager::init() {
|
void StickersManager::init() {
|
||||||
if (!td_->auth_manager_->is_authorized() || td_->auth_manager_->is_bot() || G()->close_flag()) {
|
if (is_inited_ || !td_->auth_manager_->is_authorized() || td_->auth_manager_->is_bot() || G()->close_flag()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
LOG(INFO) << "Init StickersManager";
|
LOG(INFO) << "Init StickersManager";
|
||||||
|
Loading…
Reference in New Issue
Block a user