From 7347efd15200c4aeae700dffa0724b80f44005a1 Mon Sep 17 00:00:00 2001 From: Max Lv Date: Fri, 9 May 2014 09:44:33 +0800 Subject: [PATCH] fix jni --- src/local.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/local.c b/src/local.c index 40ddeab9..826b6af1 100644 --- a/src/local.c +++ b/src/local.c @@ -762,7 +762,7 @@ static void close_and_free_remote(EV_P_ struct remote *remote) ev_io_stop(EV_A_ &remote->send_ctx->io); ev_io_stop(EV_A_ &remote->recv_ctx->io); #ifdef ANDROID - free_protect_fd(remote->fd); + free_protected_socket(remote->fd); #else close(remote->fd); #endif @@ -878,7 +878,7 @@ static struct remote* connect_to_remote(struct listen_ctx *listener, #ifdef ANDROID - sockfd = new_protect_socket(); + sockfd = new_protected_socket(); #else