mirror of
https://github.com/zhaojh329/rtty.git
synced 2026-02-27 09:53:17 +08:00
start_file_service should move to rtty_start
Signed-off-by: Jianhui Zhao <zhaojh329@gmail.com>
This commit is contained in:
+2
-2
@@ -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);
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user