diff options
author | irungentoo <irungentoo@gmail.com> | 2013-07-08 10:20:33 -0700 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2013-07-08 10:20:33 -0700 |
commit | ea2459f3a58b8474ed01da54d5180ca3ae056e6d (patch) | |
tree | cc488ebd9519f6d9b00c67911efd0d569cc58222 | |
parent | c00cf85078a3d0ba372dc95d9ca1f54007d10ba5 (diff) | |
parent | dd8d34d460ebedc386c9546724f4f22e51de2fdf (diff) |
Merge pull request #17 from SHTheSuper/master
Small optimization.
-rw-r--r-- | .gitignore | 3 | ||||
-rw-r--r-- | core/net_crypto.c | 6 |
2 files changed, 4 insertions, 5 deletions
diff --git a/.gitignore b/.gitignore new file mode 100644 index 00000000..f7500447 --- /dev/null +++ b/.gitignore | |||
@@ -0,0 +1,3 @@ | |||
1 | |||
2 | .DS_Store | ||
3 | |||
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() | |||
569 | while(1) | 569 | while(1) |
570 | { | 570 | { |
571 | income = incoming_connection(); | 571 | income = incoming_connection(); |
572 | if(income == -1) | 572 | if(income == -1 || new_incoming(income) ) |
573 | { | ||
574 | break; | ||
575 | } | ||
576 | if(new_incoming(income)) | ||
577 | { | 573 | { |
578 | break; | 574 | break; |
579 | } | 575 | } |