diff options
author | tiptorrent development team <tiptorrent@soleta.eu> | 2022-11-30 11:43:13 +0100 |
---|---|---|
committer | tiptorrent development team <tiptorrent@soleta.eu> | 2022-11-30 11:44:16 +0100 |
commit | 9d13b48925547fb1f0deaa0b257d490a16f47f92 (patch) | |
tree | 56367a046167278a67e961392c35a014026fe6bc /src/main.c | |
parent | edb59d490737438baf15fff49ef6da21790a2b26 (diff) |
remove redundant check
should not ever happen.
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -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); |