From: Juliusz Chroboczek Date: Fri, 18 Feb 2011 00:23:49 +0000 (+0000) Subject: Fix incorrect use of tr_timerAdd. X-Git-Tag: 2.30b1~352 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=98ea0addb0d58236652c1caa35bf9f0db43b637e;p=transmission Fix incorrect use of tr_timerAdd. --- 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,