Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

無限ループ

  • Loading branch information...
commit b51aa1a7e5f5650e6e5360b053f573f3a34b40b1 1 parent 79f12f0
@cho45 authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  recent.htm
View
3  recent.htm
@@ -275,7 +275,7 @@
queue.worker = next(function () {
return next(function () {
var job = queue.shift();
- if (!job) return delete queue.worker;
+ if (!job) throw "done";
var path = job.path;
var size = job.size;
var ret = new Deferred();
@@ -313,6 +313,7 @@
next(arguments.callee);
}).
error(function (e) {
+ if (e === 'done') return delete queue.worker;
alert(e);
});
}
Please sign in to comment.
Something went wrong with that request. Please try again.