Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
officejs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
officejs
Commits
8fe4ddb3
Commit
8fe4ddb3
authored
Apr 30, 2012
by
Tristan Cavelier
Committed by
Sebastien Robin
May 18, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
When 'createNew' is requested, it'll create a new jio instance and will
automaticaly start it.
parent
5ab6b025
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
jiotest/unhosted/jio.js
jiotest/unhosted/jio.js
+5
-1
No files found.
jiotest/unhosted/jio.js
View file @
8fe4ddb3
...
@@ -529,12 +529,15 @@
...
@@ -529,12 +529,15 @@
if
(
this
.
storage
)
if
(
this
.
storage
)
if
(
!
jioGlobalObj
.
storageTypeObject
[
this
.
storage
.
type
])
if
(
!
jioGlobalObj
.
storageTypeObject
[
this
.
storage
.
type
])
$
.
error
(
'
Unknown storage type "
'
+
this
.
storage
.
type
+
'
"
'
);
$
.
error
(
'
Unknown storage type "
'
+
this
.
storage
.
type
+
'
"
'
);
// start jio process
this
.
start
();
};
};
// JIO Prototype
// JIO Prototype
JioCons
.
prototype
=
{
JioCons
.
prototype
=
{
start
:
function
()
{
start
:
function
()
{
// Start JIO: start listening to jobs and make it ready
// Start JIO: start listening to jobs and make it ready
if
(
this
.
id
!==
0
)
return
false
;
// set a new jio id
// set a new jio id
this
.
id
=
getNewQueueID
();
this
.
id
=
getNewQueueID
();
console
.
log
(
this
.
id
);
console
.
log
(
this
.
id
);
...
@@ -556,6 +559,7 @@
...
@@ -556,6 +559,7 @@
this
.
listener
.
stop
();
this
.
listener
.
stop
();
this
.
toucher
.
stop
();
this
.
toucher
.
stop
();
this
.
ready
=
false
;
this
.
ready
=
false
;
this
.
id
=
0
;
return
true
;
return
true
;
},
},
kill
:
function
()
{
kill
:
function
()
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment