mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-01-29 14:37:49 +00:00
Reset jobs when tunnel restarts.
This commit is contained in:
@@ -579,6 +579,11 @@ function Tunnel(properties) {
|
||||
this.on('stop', function() {
|
||||
completed = 0;
|
||||
success = true;
|
||||
_.each(all, function(job) {
|
||||
job.attempts = 0;
|
||||
job.failed = false;
|
||||
job.id = job.result = job.url = null;
|
||||
});
|
||||
});
|
||||
|
||||
this.jobs = {'active': active, 'all': all, 'queue': queue };
|
||||
|
||||
Reference in New Issue
Block a user