Skip to content
Snippets Groups Projects
Commit d9ea5425 authored by Rob Swindell's avatar Rob Swindell :speech_balloon:
Browse files

Don't create a JS "client" object for timed events

There is no actual TCP-client when a timed event is executing, so don't create one in the JS context when the socket is invalid.
parent 400c5e0b
No related branches found
No related tags found
1 merge request!463MRC mods by Codefenix (2024-10-20)
Pipeline #946 passed
...@@ -1289,7 +1289,7 @@ JSContext* sbbs_t::js_init(JSRuntime** runtime, JSObject** glob, const char* des ...@@ -1289,7 +1289,7 @@ JSContext* sbbs_t::js_init(JSRuntime** runtime, JSObject** glob, const char* des
,uptime, server_host_name(), SOCKLIB_DESC /* system */ ,uptime, server_host_name(), SOCKLIB_DESC /* system */
,&js_callback /* js */ ,&js_callback /* js */
,&startup->js ,&startup->js
,&client, client_socket, -1 /* client */ ,client_socket == INVALID_SOCKET ? NULL : &client, client_socket, -1 /* client */
,&js_server_props /* server */ ,&js_server_props /* server */
,glob ,glob
)) ))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment