mirror of
https://github.com/irungentoo/toxcore.git
synced 2024-03-22 13:30:51 +08:00
Quick fix
Used two if statements, both of which just broke a loop. Just threw them together with ||. Should be slightly faster.
This commit is contained in:
parent
c00cf85078
commit
dd8d34d460
3
.gitignore
vendored
Normal file
3
.gitignore
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
|
||||||
|
.DS_Store
|
||||||
|
|
|
@ -569,11 +569,7 @@ void handle_incomings()
|
||||||
while(1)
|
while(1)
|
||||||
{
|
{
|
||||||
income = incoming_connection();
|
income = incoming_connection();
|
||||||
if(income == -1)
|
if(income == -1 || new_incoming(income) )
|
||||||
{
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
if(new_incoming(income))
|
|
||||||
{
|
{
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user