remove redundant check

should not ever happen.
multiprocess
tiptorrent development team 2022-11-30 11:43:13 +01:00
parent edb59d4907
commit 9d13b48925
1 changed files with 0 additions and 4 deletions

View File

@ -589,9 +589,6 @@ int main(int argc, char *argv[])
if (ret < 0)
goto err_bailout;
if (_cli.state != TIP_CLIENT_DONE)
goto err;
fd = _cli.fd;
file_size = _cli.content_len;
@ -631,7 +628,6 @@ int main(int argc, char *argv[])
data_len += _cli.data_len;
}
close(fd);
err:
gettimeofday(&tv_stop, NULL);
timersub(&tv_stop, &tv_start, &tv);