From 2f448c9b5981ce1e9277e6bc1a7c8d3866842906 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Wed, 17 Apr 2013 15:21:57 +0800 Subject: [PATCH] refine the order --- src/server.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server.c b/src/server.c index c5e17f0c..32d6d472 100644 --- a/src/server.c +++ b/src/server.c @@ -403,8 +403,8 @@ static void server_resolve_cb(EV_P_ ev_timer *watcher, int revents) { memcpy(remote->buf, server->buf, server->buf_len); remote->buf_len = server->buf_len; remote->buf_idx = 0; - server->buf_idx = 0; server->buf_len = 0; + server->buf_idx = 0; } // listen to remote connected event