diff options
author | irungentoo <irungentoo@gmail.com> | 2014-05-11 19:35:23 -0400 |
---|---|---|
committer | irungentoo <irungentoo@gmail.com> | 2014-05-11 19:35:23 -0400 |
commit | 87cec792062a755675e53b5603049cdb067aa70f (patch) | |
tree | 661966b15e67bb9f1ac41da92394188ea13f5bde /toxcore/net_crypto.c | |
parent | 1580a5c696478aec1b17946e323a4091430106c5 (diff) |
Fixed issue where callbacks were not set for accepted connection.
Diffstat (limited to 'toxcore/net_crypto.c')
-rw-r--r-- | toxcore/net_crypto.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/toxcore/net_crypto.c b/toxcore/net_crypto.c index 5770121e..a5149a7c 100644 --- a/toxcore/net_crypto.c +++ b/toxcore/net_crypto.c | |||
@@ -1527,7 +1527,7 @@ static void send_crypto_packets(Net_Crypto *c) | |||
1527 | send_temp_packet(c, i); | 1527 | send_temp_packet(c, i); |
1528 | } | 1528 | } |
1529 | 1529 | ||
1530 | if (conn->status >= CRYPTO_CONN_NOT_CONFIRMED | 1530 | if ((conn->status == CRYPTO_CONN_NOT_CONFIRMED || conn->status == CRYPTO_CONN_ESTABLISHED) |
1531 | && (CRYPTO_SEND_PACKET_INTERVAL + conn->last_request_packet_sent) < temp_time) { | 1531 | && (CRYPTO_SEND_PACKET_INTERVAL + conn->last_request_packet_sent) < temp_time) { |
1532 | if (send_request_packet(c, i) == 0) { | 1532 | if (send_request_packet(c, i) == 0) { |
1533 | conn->last_request_packet_sent = temp_time; | 1533 | conn->last_request_packet_sent = temp_time; |