Don't try to get name of an empty actor.

This commit is contained in:
levlam 2024-01-27 13:27:55 +03:00
parent c5c55092dd
commit 8c02d57443

View File

@ -3328,7 +3328,9 @@ void Td::clear() {
alarm_timeout_.cancel_timeout(PROMO_DATA_ALARM_ID); alarm_timeout_.cancel_timeout(PROMO_DATA_ALARM_ID);
auto reset_actor = [&timer](ActorOwn<Actor> actor) { auto reset_actor = [&timer](ActorOwn<Actor> actor) {
LOG(DEBUG) << "Start clearing " << actor.get().get_name() << timer; if (!actor.empty()) {
LOG(DEBUG) << "Start clearing " << actor.get().get_name() << timer;
}
}; };
// close all pure actors // close all pure actors