Skip to content
Snippets Groups Projects
Commit 70eaf713 authored by rswindell's avatar rswindell
Browse files

Moved the JS parameter checking in js_init() (which execute even after a

recycle).
parent 8880ef53
Branches
Tags
No related merge requests found
......@@ -869,6 +869,9 @@ bool sbbs_t::js_init(ulong* stack_frame)
else
strcpy(node,client_name);
if(startup->js.max_bytes==0) startup->js.max_bytes=JAVASCRIPT_MAX_BYTES;
if(startup->js.cx_stack==0) startup->js.cx_stack=JAVASCRIPT_CONTEXT_STACK;
lprintf(LOG_DEBUG,"%s JavaScript: Creating runtime: %lu bytes"
,node,startup->js.max_bytes);
......@@ -3766,10 +3769,6 @@ void DLLCALL bbs_thread(void* arg)
if(startup->telnet_port==0) startup->telnet_port=IPPORT_TELNET;
if(startup->rlogin_port==0) startup->rlogin_port=513;
if(startup->xtrn_polls_before_yield==0) startup->xtrn_polls_before_yield=10;
#ifdef JAVASCRIPT
if(startup->js.max_bytes==0) startup->js.max_bytes=JAVASCRIPT_MAX_BYTES;
if(startup->js.cx_stack==0) startup->js.cx_stack=JAVASCRIPT_CONTEXT_STACK;
#endif
if(startup->outbuf_drain_timeout==0) startup->outbuf_drain_timeout=10;
if(startup->sem_chk_freq==0) startup->sem_chk_freq=2;
if(startup->temp_dir[0]) backslash(startup->temp_dir);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment