Skip to content
Snippets Groups Projects
Commit 80e48c05 authored by rswindell's avatar rswindell
Browse files

Dont' log an error message when getpeername() fails in js_CreateSocketObject()

- the socket could be (and sometimes is) already disconnected.
parent 467f912d
Branches
Tags
No related merge requests found
......@@ -2174,8 +2174,6 @@ JSObject* DLLCALL js_CreateSocketObject(JSContext* cx, JSObject* parent, char *n
len=sizeof(p->remote_addr);
if(getpeername(p->sock, &p->remote_addr.addr,&len)==0)
p->is_connected=TRUE;
else
lprintf(LOG_ERR, "Error %d calling getpeername()",errno);
}
if(!JS_SetPrivate(cx, obj, p)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment