From 9d13b48925547fb1f0deaa0b257d490a16f47f92 Mon Sep 17 00:00:00 2001 From: tiptorrent development team Date: Wed, 30 Nov 2022 11:43:13 +0100 Subject: remove redundant check should not ever happen. --- src/main.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src') 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); -- cgit v1.2.3-18-g5258