Skip to content

Commit

Permalink
down file: more stable
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
  • Loading branch information
zhaojh329 committed Feb 5, 2020
1 parent 6d2b5a4 commit 3e375cb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/downfile.c
Expand Up @@ -136,6 +136,9 @@ static void on_net_read(struct ev_loop *loop, struct ev_io *w, int revents)
bool eof;
int ret;

if (buffer_length (&wb) > 0)
return;

if (canceled) {
ev_io_stop (loop, w);
return;
Expand Down

0 comments on commit 3e375cb

Please sign in to comment.