summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorirungentoo <irungentoo@gmail.com>2014-12-01 20:18:01 -0500
committerirungentoo <irungentoo@gmail.com>2014-12-01 20:18:01 -0500
commitb52de10dabf87e34e81bf56d250805325320faf1 (patch)
tree5a245a92fe2f85c65f862df8da8322265f372e6a
parentb58fb09ddc60d1d4a99b9e8bedb4c064ec2b8f81 (diff)
Groupchat stability fixes.
Query for peers if we were connected to nobody for some reason.
-rw-r--r--toxcore/group.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/toxcore/group.c b/toxcore/group.c
index 9a174251..40372bca 100644
--- a/toxcore/group.c
+++ b/toxcore/group.c
@@ -1383,6 +1383,10 @@ static int handle_packet_online(Group_Chats *g_c, int friendcon_id, uint8_t *dat
1383 if (index == -1) 1383 if (index == -1)
1384 return -1; 1384 return -1;
1385 1385
1386 if (count_close_connected(g) == 0) {
1387 send_peer_query(g_c, friendcon_id, other_groupnum);
1388 }
1389
1386 g->close[index].group_number = other_groupnum; 1390 g->close[index].group_number = other_groupnum;
1387 g->close[index].type = GROUPCHAT_CLOSE_ONLINE; 1391 g->close[index].type = GROUPCHAT_CLOSE_ONLINE;
1388 1392