diff options
| author | Zack Hobson | 2009-07-30 13:56:52 -0700 |
|---|---|---|
| committer | Zack Hobson | 2009-07-30 14:01:50 -0700 |
| commit | 876d7cf34b94cb8be17622c04035022924a20e06 (patch) | |
| tree | 35df429c777dd1f8010c9c3fbddd2a6723b49da4 /lib | |
| parent | ae7eea7717fa76f18bbb446777c1d2280345f616 (diff) | |
| download | hcl-876d7cf34b94cb8be17622c04035022924a20e06.tar.bz2 | |
Whoops, fixed a serious bug that created timers without starting them.
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/hcl/task.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/hcl/task.rb b/lib/hcl/task.rb index 8a4769a..bc32c0b 100644 --- a/lib/hcl/task.rb +++ b/lib/hcl/task.rb @@ -46,7 +46,11 @@ class HCl def start opts day = add opts - DayEntry.from_xml(Task.get("daily/timer/#{day.id}")).first + if day.running? + day + else + DayEntry.from_xml(Task.get("daily/timer/#{day.id}")).first + end end end |
