Commit 8fe4ddb3 authored by Tristan Cavelier's avatar Tristan Cavelier Committed by Sebastien Robin

When 'createNew' is requested, it'll create a new jio instance and will

automaticaly start it.
parent 5ab6b025
......@@ -529,12 +529,15 @@
if (this.storage)
if (!jioGlobalObj.storageTypeObject[this.storage.type])
$.error('Unknown storage type "' + this.storage.type +'"');
// start jio process
this.start();
};
// JIO Prototype
JioCons.prototype = {
start: function () {
// Start JIO: start listening to jobs and make it ready
if (this.id !== 0) return false;
// set a new jio id
this.id = getNewQueueID();
console.log (this.id);
......@@ -556,6 +559,7 @@
this.listener.stop();
this.toucher.stop();
this.ready = false;
this.id = 0;
return true;
},
kill: function () {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment