X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=lib%2Fimmanager.php;fp=lib%2Fimmanager.php;h=da80b74b7f71b3311dacd0171a04a76c257976ee;hb=20d6a7caed6636c28cc7b95c584549691dff4388;hp=4c28ec0e6abea8cbbb66413614d497c22aca9660;hpb=32084e33a266797b306158df29e48f057651b410;p=quix0rs-gnu-social.git diff --git a/lib/immanager.php b/lib/immanager.php index 4c28ec0e6a..da80b74b7f 100644 --- a/lib/immanager.php +++ b/lib/immanager.php @@ -42,8 +42,7 @@ abstract class ImManager extends IoManager function __construct($imPlugin) { $this->plugin = $imPlugin; - //TODO We only really want to register this event if this is the thread that runs the ImManager - Event::addHandler('EndInitializeQueueManager', array($this, 'onEndInitializeQueueManager')); + $this->plugin->imManager = $this; } /** @@ -54,17 +53,4 @@ abstract class ImManager extends IoManager { throw new Exception('ImManager should be created using it\'s constructor, not the static get method'); } - - /** - * Register notice queue handler - * - * @param QueueManager $manager - * - * @return boolean hook return - */ - function onEndInitializeQueueManager($manager) - { - $manager->connect($this->plugin->transport . '-out', new ImSenderQueueHandler($this->plugin, $this), 'imdaemon'); - return true; - } }