Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, for more info) to build successfully.

Commit 59e63360 authored by deuce's avatar deuce

Don't close external sockets in finalize.

parent 8cf81803
...@@ -403,7 +403,8 @@ static void js_finalize_socket(JSContext *cx, JSObject *obj) ...@@ -403,7 +403,8 @@ static void js_finalize_socket(JSContext *cx, JSObject *obj)
if((p=(js_socket_private_t*)JS_GetPrivate(cx,obj))==NULL) if((p=(js_socket_private_t*)JS_GetPrivate(cx,obj))==NULL)
return; return;
do_js_close(p); if (!p->external)
if(p->hostname) if(p->hostname)
free(p->hostname); free(p->hostname);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment