Commit fe1bfbb2 authored by Randy Sommerfeld's avatar Randy Sommerfeld
Browse files

Don't set properties until we know the object is valid

parent 8010b447
......@@ -2684,13 +2684,13 @@ function accept_new_socket() {
sock = this.accept();
sock.array_buffer = false; /* JS78, we want strings */
if (!sock) {
log(LOG_DEBUG,"!ERROR " + sock.error + " accepting connection");
return 1;
}
sock.array_buffer = false; /* JS78, we want strings */
log(LOG_DEBUG,"Accepting new connection on port " + sock.local_port);
switch (sock.local_port) {
......
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