1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-24 16:52:39 +00:00

add a missing function declaration

This commit is contained in:
Mitchell Livingston 2007-04-30 19:43:43 +00:00
parent d619e30a43
commit 7105312fba
2 changed files with 1 additions and 2 deletions

View file

@ -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 * );

View file

@ -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)