My tests for this were invalid because I discovered that by default the task does not run when not on AC power and the test was on my laptop. So it looks like the above code is fine so please disregard this thread. It looks like the people who reported the problem may have had other issues.
↧