Skip to content

Commit

Permalink
fix: invalid log
Browse files Browse the repository at this point in the history
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
  • Loading branch information
zhaojh329 committed Apr 27, 2021
1 parent c20362f commit b1a3f19
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/rtty.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,10 +415,8 @@ static void on_net_read(struct ev_loop *loop, struct ev_io *w, int revents)
}

ret = buffer_put_fd_ex(&rtty->rb, w->fd, 4096, &eof, rtty_ssl_read, rtty);
if (ret < 0) {
log_err("socket read error: %s\n", strerror(errno));
if (ret < 0)
goto err;
}
#endif
} else {
ret = buffer_put_fd(&rtty->rb, w->fd, 4096, &eof);
Expand Down

0 comments on commit b1a3f19

Please sign in to comment.