diff --git a/src/sbbs3/main.cpp b/src/sbbs3/main.cpp index 04eff4a477ace1edfdf7c879d0e66e7c3a4f0905..cbcb97ab9556d508bd692a91e0701eec6201f1f8 100644 --- a/src/sbbs3/main.cpp +++ b/src/sbbs3/main.cpp @@ -500,6 +500,8 @@ bool sbbs_t::js_init() if((js_cx = JS_NewContext(js_runtime, JAVASCRIPT_CONTEXT_STACK))==NULL) return(false); + js_loop = 0; /* loop counter */ + bool success=false; do {