]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
correct return values from start() in queue handlers
authorEvan Prodromou <evan@prodromou.name>
Thu, 28 Aug 2008 00:30:13 +0000 (20:30 -0400)
committerEvan Prodromou <evan@prodromou.name>
Thu, 28 Aug 2008 00:30:13 +0000 (20:30 -0400)
darcs-hash:20080828003013-84dde-7c8323ef348960f58590e872b2c4ab37107ba60a.gz

scripts/ombqueuehandler.php
scripts/smsqueuehandler.php
scripts/xmppqueuehandler.php

index 7bdad25657ae3382dbb100949513214f38e6a074..75e04dd19b53c3ca73d9d83824ee778ea1fd317d 100755 (executable)
@@ -40,6 +40,7 @@ class OmbQueueHandler {
        }
        
        function start() {
+               return true;
        }
 
        function handle_notice($notice) {
index 99dd9cf77a8a169c78d1e93a64145dd3e7270986..dc78d668044564ff87a0933e3aba5e4432a2d7e6 100755 (executable)
@@ -38,8 +38,9 @@ class SmsQueueHandler {
        function transport() {
                return 'omb';
        }
-       
+
        function start() {
+               return true;
        }
 
        function handle_notice($notice) {
index 626db850702ab05ba514f86f0dc65cee61385895..5c1445bd28b6e329ce59d3ed23ad7fbea067bf2c 100755 (executable)
@@ -42,6 +42,7 @@ class XmppQueueHandler {
        function start() {
                # Low priority; we don't want to receive messages
                $this->conn = jabber_connect($this->resource, NULL, -100);
+               return !is_null($this->conn);
        }
 
        function handle_notice($notice) {