diff options
Diffstat (limited to 'toxcore/group_chats.c')
-rw-r--r-- | toxcore/group_chats.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/group_chats.c b/toxcore/group_chats.c index 1b021e20..59266b7a 100644 --- a/toxcore/group_chats.c +++ b/toxcore/group_chats.c | |||
@@ -204,7 +204,7 @@ static uint8_t sendto_allpeers(Group_Chat *chat, uint8_t *data, uint16_t length, | |||
204 | uint64_t temp_time = unix_time(); | 204 | uint64_t temp_time = unix_time(); |
205 | 205 | ||
206 | for (i = 0; i < GROUP_CLOSE_CONNECTIONS; ++i) { | 206 | for (i = 0; i < GROUP_CLOSE_CONNECTIONS; ++i) { |
207 | if (chat->close[i].ip_port.ip.uint32 != 0 && chat->close[i].last_recv + BAD_NODE_TIMEOUT > temp_time) { | 207 | if (ip_isset(&chat->close[i].ip_port.ip) && chat->close[i].last_recv + BAD_NODE_TIMEOUT > temp_time) { |
208 | if (send_groupchatpacket(chat, chat->close[i].ip_port, chat->close[i].client_id, data, length, request_id) == 0) | 208 | if (send_groupchatpacket(chat, chat->close[i].ip_port, chat->close[i].client_id, data, length, request_id) == 0) |
209 | ++sent; | 209 | ++sent; |
210 | } | 210 | } |