From 98ea0addb0d58236652c1caa35bf9f0db43b637e Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Fri, 18 Feb 2011 00:23:49 +0000 Subject: [PATCH] Fix incorrect use of tr_timerAdd. --- libtransmission/tr-utp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libtransmission/tr-utp.c b/libtransmission/tr-utp.c index e13f51477..b9d832a4b 100644 --- a/libtransmission/tr-utp.c +++ b/libtransmission/tr-utp.c @@ -56,7 +56,7 @@ static void timer_callback(int s UNUSED, short type UNUSED, void *closure UNUSED) { UTP_CheckTimeouts(); - tr_timerAdd(utp_timer, 0, tr_cryptoWeakRandInt(2000000)); + tr_timerAdd(utp_timer, 1, tr_cryptoWeakRandInt(1000000)); } int @@ -69,7 +69,7 @@ tr_utpPacket(const unsigned char *buf, size_t buflen, if(utp_timer == NULL) return -1; evtimer_set(utp_timer, timer_callback, NULL); - tr_timerAdd(utp_timer, 0, tr_cryptoWeakRandInt(2000000)); + tr_timerAdd(utp_timer, 1, tr_cryptoWeakRandInt(1000000)); } return UTP_IsIncomingUTP(incoming, send_to, ss,