Browse files

Fixed issue #5

  • Loading branch information...
1 parent a06a525 commit 563b54520916a2460855de23a0fd83e44b7c03d1 @mattpat mattpat committed Feb 16, 2012
Showing with 3 additions and 4 deletions.
  1. +2 −3 lib/schedule.js
  2. +1 −1 package.json
View
5 lib/schedule.js
@@ -123,9 +123,8 @@ Job.prototype.schedule = function(spec){
if (typeof(spec) == 'object' && spec instanceof Date)
{
var inv = new Invocation(this, spec);
- success = scheduleInvocation(inv);
- if (success)
- this.trackInvocation(inv);
+ scheduleInvocation(inv);
+ success = this.trackInvocation(inv);
}
else if (typeof(spec) == 'string' || (typeof(spec) == 'object' && spec instanceof String))
{
View
2 package.json
@@ -1,6 +1,6 @@
{
"name": "node-schedule",
- "version": "0.1.4",
+ "version": "0.1.5",
"description": "A cron-like and not-cron-like job scheduler for Node.",
"keywords": ["schedule", "task", "job", "cron"],
"author": {

0 comments on commit 563b545

Please sign in to comment.