Bugfix: Not running a polling in inactive mode.

Fixes #19