mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Groupchat crashing bug fixed.
This commit is contained in:
parent
bd973152cc
commit
fdf1b6932b
|
@ -787,7 +787,7 @@ static void del_dead_peers(Group_Chat *chat)
|
|||
delpeer(chat, i);
|
||||
}
|
||||
|
||||
if (chat->group[i].deleted) {
|
||||
if (chat->group != NULL && chat->group[i].deleted) {
|
||||
if (is_timeout(chat->group[i].deleted_time, DEL_PEER_DELAY))
|
||||
delpeer(chat, i);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user