mirror of
https://github.com/transmission/transmission
synced 2024-12-25 09:13:06 +00:00
add a missing function declaration
This commit is contained in:
parent
d619e30a43
commit
7105312fba
2 changed files with 1 additions and 2 deletions
|
@ -28,6 +28,7 @@
|
||||||
typedef struct tr_io_s tr_io_t;
|
typedef struct tr_io_s tr_io_t;
|
||||||
|
|
||||||
void tr_ioLoadResume ( tr_torrent_t * );
|
void tr_ioLoadResume ( tr_torrent_t * );
|
||||||
|
void tr_ioRemoveResume( tr_torrent_t * tor );
|
||||||
|
|
||||||
tr_io_t * tr_ioInit ( tr_torrent_t * );
|
tr_io_t * tr_ioInit ( tr_torrent_t * );
|
||||||
|
|
||||||
|
|
|
@ -533,13 +533,11 @@ static void sleepCallBack(void * controller, io_service_t y, natural_t messageTy
|
||||||
enumerator = [fTorrents objectEnumerator];
|
enumerator = [fTorrents objectEnumerator];
|
||||||
Torrent * torrent;
|
Torrent * torrent;
|
||||||
while (!timeUp && (torrent = [enumerator nextObject]))
|
while (!timeUp && (torrent = [enumerator nextObject]))
|
||||||
{
|
|
||||||
while (![torrent isPaused] && !(timeUp = [start timeIntervalSinceNow] < -5.0))
|
while (![torrent isPaused] && !(timeUp = [start timeIntervalSinceNow] < -5.0))
|
||||||
{
|
{
|
||||||
usleep(100000);
|
usleep(100000);
|
||||||
[torrent update];
|
[torrent update];
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
//wait for NAT to be disabled (same 5 second timeout)
|
//wait for NAT to be disabled (same 5 second timeout)
|
||||||
while (!([start timeIntervalSinceNow] < -5.0)
|
while (!([start timeIntervalSinceNow] < -5.0)
|
||||||
|
|
Loading…
Reference in a new issue