mirror of
https://github.com/transmission/transmission
synced 2024-12-27 01:57:52 +00:00
a little more cleanup
This commit is contained in:
parent
15aa8d8840
commit
16991fb9b7
1 changed files with 2 additions and 6 deletions
|
@ -331,17 +331,13 @@ static void sleepCallBack(void * controller, io_service_t y,
|
||||||
|
|
||||||
NSEnumerator * enumerator = [fTorrents objectEnumerator];
|
NSEnumerator * enumerator = [fTorrents objectEnumerator];
|
||||||
Torrent * torrent;
|
Torrent * torrent;
|
||||||
while ((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];
|
||||||
}
|
}
|
||||||
|
|
||||||
if (timeUp)
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
[fTorrents release];
|
[fTorrents release];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue