mirror of
https://github.com/gnh1201/welsonjs.git
synced 2025-05-11 20:21:03 +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) {
|
||||
try {
|
||||
if (q instanceof TaskQueue) {
|
||||
if (q instanceof TaskQueue && task instanceof Task) {
|
||||
return q.put(task);
|
||||
}
|
||||
} catch(e) {
|
||||
|
|
Loading…
Reference in New Issue
Block a user