]> git.mxchange.org Git - hub.git/blobdiff - application/hub/main/pools/listener/class_DefaultListenerPool.php
Refacturing to pass a ProtocolHandler instance instead of the direct name. This
[hub.git] / application / hub / main / pools / listener / class_DefaultListenerPool.php
index ead076ddaba5e02dc9ad03fd0402187f26dd1859..14a13e2e4228b68f5b1de7536644a8b6e9a6a382 100644 (file)
@@ -57,7 +57,7 @@ class DefaultListenerPool extends BasePool implements PoolableListener {
         */
        public function addListener (Listenable $listenerInstance) {
                // Add this listener instance to the instance list
-               parent::addInstance($listenerInstance->getProtocol(), 'listener', $listenerInstance);
+               parent::addInstance($listenerInstance->getProtocolName(), 'listener', $listenerInstance);
 
                // Debug message
                self::createDebugInstance(__CLASS__)->debugOutput(