ip/torrent: exit immidiately when file is complete after verification and not being in seed mode
This commit is contained in:
parent
b7c05975f5
commit
1e2d95a803
1 changed files with 3 additions and 0 deletions
|
@ -1352,6 +1352,9 @@ main(int argc, char *argv[])
|
||||||
while(waitpid() >= 0)
|
while(waitpid() >= 0)
|
||||||
;
|
;
|
||||||
|
|
||||||
|
if(finished() && !sflag)
|
||||||
|
exits(0);
|
||||||
|
|
||||||
srand(truerand());
|
srand(truerand());
|
||||||
atnotify(catch, 1);
|
atnotify(catch, 1);
|
||||||
switch(i = rfork(RFPROC|RFMEM|RFNOTEG)){
|
switch(i = rfork(RFPROC|RFMEM|RFNOTEG)){
|
||||||
|
|
Loading…
Reference in a new issue