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
1 changed files with 3 additions and 1 deletions

View File

@ -3328,7 +3328,9 @@ void Td::clear() {
alarm_timeout_.cancel_timeout(PROMO_DATA_ALARM_ID);
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