Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
......@@ -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) {
......
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