summaryrefslogtreecommitdiffstats
path: root/src/main.c
diff options
context:
space:
mode:
authortiptorrent development team <tiptorrent@soleta.eu>2022-11-30 11:43:13 +0100
committertiptorrent development team <tiptorrent@soleta.eu>2022-11-30 11:44:16 +0100
commit9d13b48925547fb1f0deaa0b257d490a16f47f92 (patch)
tree56367a046167278a67e961392c35a014026fe6bc /src/main.c
parentedb59d490737438baf15fff49ef6da21790a2b26 (diff)
remove redundant check
should not ever happen.
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index 961b650..b156e1b 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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);