Skip to content

Commit

Permalink
start_file_service should move to rtty_start
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 10, 2020
1 parent b3e6f82 commit d44d71c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rtty.c
Expand Up @@ -425,8 +425,6 @@ static void on_net_connected(int sock, void *arg)

ev_io_init(&rtty->iow, on_net_write, sock, EV_WRITE);

start_file_service(&rtty->file_context);

if (rtty->ssl_on) {
#if (RTTY_SSL_SUPPORT)
rtty_ssl_init((struct rtty_ssl_ctx **)&rtty->ssl, sock, rtty->host);
Expand Down Expand Up @@ -493,6 +491,8 @@ int rtty_start(struct rtty *rtty)
&& !rtty->reconnect)
return -1;

start_file_service(&rtty->file_context);

rtty->active = ev_now(rtty->loop);

return 0;
Expand Down

0 comments on commit d44d71c

Please sign in to comment.