Change method to protected
Merge pull request #1007 from winzou/fix/listener

Change method to protected