From 8b69fa90faef6b38fd263503bf989706e49cf73f Mon Sep 17 00:00:00 2001
From: rswindell <>
Date: Mon, 30 Apr 2001 00:45:10 +0000
Subject: [PATCH] Fixed for non-JavaScript builds.

---
 src/sbbs3/main.cpp | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/sbbs3/main.cpp b/src/sbbs3/main.cpp
index 7227b8bcda..e80f7964ee 100644
--- a/src/sbbs3/main.cpp
+++ b/src/sbbs3/main.cpp
@@ -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);
-- 
GitLab