Skip to content

Commit

Permalink
return values for all but the error case
Browse files Browse the repository at this point in the history
  • Loading branch information
sudden6 committed Dec 8, 2019
1 parent 78c1736 commit 393bfcf
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions toxcore/net_crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -2930,10 +2930,6 @@ bool crypto_connection_status(const Net_Crypto *c, int crypt_connection_id, bool
return false;
}

if (conn->status != CRYPTO_CONN_ESTABLISHED) {
return false;
}

if (direct_connected) {
*direct_connected = 0;

Expand Down

0 comments on commit 393bfcf

Please sign in to comment.