mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-15 06:01:04 +00:00
Update task.js
This commit is contained in:
parent
5849a79e30
commit
7263b3a517
|
@ -129,7 +129,7 @@ exports.createTask = function(f, params) {
|
||||||
|
|
||||||
exports.putTask = function(q, task) {
|
exports.putTask = function(q, task) {
|
||||||
try {
|
try {
|
||||||
if (q instanceof TaskQueue) {
|
if (q instanceof TaskQueue && task instanceof Task) {
|
||||||
return q.put(task);
|
return q.put(task);
|
||||||
}
|
}
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user