Use channel accessor

The accessor instanciate the channel on the first call, so this was producing a bug when purge was called before any other function calling getChannel().
Merge pull request #167 from Gnucki/master

Use channel accessor