From bb0cd7da0c86356ac3413045cd3683281b2bded4 Mon Sep 17 00:00:00 2001 From: Jman012 Date: Sat, 21 Sep 2013 23:50:14 -0700 Subject: [PATCH] Fixed a bug or two. Added breaks on the new packet handlers in doFriends for the switch statement, and added a default. --- toxcore/Messenger.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/toxcore/Messenger.c b/toxcore/Messenger.c index d595c67d..199d8a92 100644 --- a/toxcore/Messenger.c +++ b/toxcore/Messenger.c @@ -1182,6 +1182,8 @@ void doFriends(Messenger *m) if (m->group_invite) (*m->group_invite)(m, i, data, m->group_invite_userdata); + + break; } case PACKET_ID_JOIN_GROUPCHAT: { @@ -1197,6 +1199,12 @@ void doFriends(Messenger *m) break; group_newpeer(m->chats[groupnum], data + crypto_box_PUBLICKEYBYTES); + + break; + } + + default: { + break; } } } else {