From dd8d34d460ebedc386c9546724f4f22e51de2fdf Mon Sep 17 00:00:00 2001 From: Anthony Super Date: Mon, 8 Jul 2013 11:05:20 -0600 Subject: Quick fix Used two if statements, both of which just broke a loop. Just threw them together with ||. Should be slightly faster. --- core/net_crypto.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'core') diff --git a/core/net_crypto.c b/core/net_crypto.c index 980250d0..bcdb2030 100644 --- a/core/net_crypto.c +++ b/core/net_crypto.c @@ -569,11 +569,7 @@ void handle_incomings() while(1) { income = incoming_connection(); - if(income == -1) - { - break; - } - if(new_incoming(income)) + if(income == -1 || new_incoming(income) ) { break; } -- cgit v1.2.3