ip/torrent: exit immidiately when file is complete after verification and not being in seed mode

This commit is contained in:
cinap_lenrek 2017-03-20 19:15:40 +01:00
parent b7c05975f5
commit 1e2d95a803

View file

@ -1352,6 +1352,9 @@ main(int argc, char *argv[])
while(waitpid() >= 0)
;
if(finished() && !sflag)
exits(0);
srand(truerand());
atnotify(catch, 1);
switch(i = rfork(RFPROC|RFMEM|RFNOTEG)){