Avoid scheduling unnecessarily on the reactor's thread.
Merge pull request #337 from whirm/taskmanager_fixes

Avoid scheduling unnecessarily on the reactor's thread.