From 31f43799e11ea824db79de2458a4ac29e6f22c3d Mon Sep 17 00:00:00 2001 From: irungentoo Date: Wed, 4 Sep 2013 07:26:30 -0400 Subject: [PATCH] Fixed small problem. --- toxcore/net_crypto.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c index 92727a8c..8c179eb3 100644 --- a/toxcore/net_crypto.c +++ b/toxcore/net_crypto.c @@ -737,11 +737,11 @@ static void receive_crypto(Net_Crypto *c) crypto_kill(c, i); return; } - } else if (id_packet(c->lossless_udp, c->crypto_connections[i].number) != -1) + } else if (id_packet(c->lossless_udp, c->crypto_connections[i].number) != -1) { /* This should not happen, kill the connection if it does. */ crypto_kill(c, i); - - return; + return; + } } } }