Skip to content
Snippets Groups Projects
Commit 93c66909 authored by rswindell's avatar rswindell
Browse files

Attempt fix of Socket.is_connected property for inherited sockets (when the

descriptor is manually set) - was always false.
parent 254023e7
No related branches found
No related tags found
No related merge requests found
......@@ -1282,6 +1282,7 @@ static JSBool js_socket_get(JSContext *cx, JSObject *obj, jsval id, jsval *vp)
break;
case SOCK_PROP_DESCRIPTOR:
*vp = INT_TO_JSVAL(p->sock);
p->is_connected = TRUE;
break;
case SOCK_PROP_NONBLOCKING:
*vp = BOOLEAN_TO_JSVAL(p->nonblocking);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment