From 7105312fbaa4cc0eecb22b7ac501bc4b753bdcac Mon Sep 17 00:00:00 2001 From: Mitchell Livingston Date: Mon, 30 Apr 2007 19:43:43 +0000 Subject: [PATCH] add a missing function declaration --- libtransmission/inout.h | 1 + macosx/Controller.m | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/libtransmission/inout.h b/libtransmission/inout.h index 510585402..053f2231c 100644 --- a/libtransmission/inout.h +++ b/libtransmission/inout.h @@ -28,6 +28,7 @@ typedef struct tr_io_s tr_io_t; void tr_ioLoadResume ( tr_torrent_t * ); +void tr_ioRemoveResume( tr_torrent_t * tor ); tr_io_t * tr_ioInit ( tr_torrent_t * ); diff --git a/macosx/Controller.m b/macosx/Controller.m index bec45222f..0692a091a 100644 --- a/macosx/Controller.m +++ b/macosx/Controller.m @@ -533,13 +533,11 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy enumerator = [fTorrents objectEnumerator]; Torrent * torrent; while (!timeUp && (torrent = [enumerator nextObject])) - { while (![torrent isPaused] && !(timeUp = [start timeIntervalSinceNow] < -5.0)) { usleep(100000); [torrent update]; } - } //wait for NAT to be disabled (same 5 second timeout) while (!([start timeIntervalSinceNow] < -5.0)