Skip to content
Snippets Groups Projects
Commit 59e63360 authored by deuce's avatar deuce
Browse files

Don't close external sockets in finalize.

parent 8cf81803
No related branches found
No related tags found
No related merge requests found
...@@ -403,6 +403,7 @@ static void js_finalize_socket(JSContext *cx, JSObject *obj) ...@@ -403,6 +403,7 @@ 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;
if (!p->external)
do_js_close(p); do_js_close(p);
if(p->hostname) if(p->hostname)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment