Skip to content
Snippets Groups Projects
Commit 8b69fa90 authored by rswindell's avatar rswindell
Browse files

Fixed for non-JavaScript builds.

parent abedbd40
No related branches found
No related tags found
No related merge requests found
......@@ -840,7 +840,9 @@ void event_thread(void* arg)
thread_up();
#ifdef JAVASCRIPT
sbbs->js_initcx(); /* This must be done in the context of the event thread */
#endif
while(1) {
......@@ -2495,17 +2497,20 @@ void node_thread(void* arg)
update_clients();
thread_up();
#ifdef JAVASCRIPT
sbbs->js_initcx(); /* This must be done in the context of the node thread */
#endif
if(sbbs->answer()) {
#ifdef JAVASCRIPT
JS_BeginRequest(sbbs->js_cx); /* Required for multi-thread support */
if(js_CreateUserObject(&sbbs->cfg, sbbs->js_cx, sbbs->js_glob, "user", &sbbs->useron)==NULL) {
lprintf("!JavaScript ERROR creating user object");
}
JS_EndRequest(sbbs->js_cx); /* Required for multi-thread support */
#endif
if(sbbs->qwklogon) {
sbbs->getsmsg(sbbs->useron.number);
......
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