From dd8d34d460ebedc386c9546724f4f22e51de2fdf Mon Sep 17 00:00:00 2001 From: Anthony Super Date: Mon, 8 Jul 2013 11:05:20 -0600 Subject: [PATCH] Quick fix Used two if statements, both of which just broke a loop. Just threw them together with ||. Should be slightly faster. --- .gitignore | 3 +++ core/net_crypto.c | 6 +----- 2 files changed, 4 insertions(+), 5 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..f7500447 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ + +.DS_Store + 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; }