Skip to content
Snippets Groups Projects
Commit 00d258fb authored by rswindell's avatar rswindell
Browse files

Bug-fix: create Queue class for services to use.

parent ad8176d8
No related branches found
No related tags found
No related merge requests found
...@@ -842,6 +842,8 @@ js_initcx(JSRuntime* js_runtime, SOCKET sock, service_client_t* service_client, ...@@ -842,6 +842,8 @@ js_initcx(JSRuntime* js_runtime, SOCKET sock, service_client_t* service_client,
JS_SetErrorReporter(js_cx, js_ErrorReporter); JS_SetErrorReporter(js_cx, js_ErrorReporter);
/* ToDo: call js_CreateCommonObjects() instead */
do { do {
JS_SetContextPrivate(js_cx, service_client); JS_SetContextPrivate(js_cx, service_client);
...@@ -877,6 +879,10 @@ js_initcx(JSRuntime* js_runtime, SOCKET sock, service_client_t* service_client, ...@@ -877,6 +879,10 @@ js_initcx(JSRuntime* js_runtime, SOCKET sock, service_client_t* service_client,
if(js_CreateFileClass(js_cx, js_glob)==NULL) if(js_CreateFileClass(js_cx, js_glob)==NULL)
break; break;
/* Queue Class */
if(js_CreateQueueClass(js_cx, js_glob)==NULL)
break;
/* user-specific objects */ /* user-specific objects */
if(!js_CreateUserObjects(js_cx, js_glob, &scfg, /*user: */NULL, service_client->client, NULL, NULL)) if(!js_CreateUserObjects(js_cx, js_glob, &scfg, /*user: */NULL, service_client->client, NULL, NULL))
break; break;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment