From: Evan Prodromou Date: Thu, 28 Aug 2008 00:30:13 +0000 (-0400) Subject: correct return values from start() in queue handlers X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=08d5107cf1a69c2640c96ee8a3d834541a530146;p=quix0rs-gnu-social.git correct return values from start() in queue handlers darcs-hash:20080828003013-84dde-7c8323ef348960f58590e872b2c4ab37107ba60a.gz --- diff --git a/scripts/ombqueuehandler.php b/scripts/ombqueuehandler.php index 7bdad25657..75e04dd19b 100755 --- a/scripts/ombqueuehandler.php +++ b/scripts/ombqueuehandler.php @@ -40,6 +40,7 @@ class OmbQueueHandler { } function start() { + return true; } function handle_notice($notice) { diff --git a/scripts/smsqueuehandler.php b/scripts/smsqueuehandler.php index 99dd9cf77a..dc78d66804 100755 --- a/scripts/smsqueuehandler.php +++ b/scripts/smsqueuehandler.php @@ -38,8 +38,9 @@ class SmsQueueHandler { function transport() { return 'omb'; } - + function start() { + return true; } function handle_notice($notice) { diff --git a/scripts/xmppqueuehandler.php b/scripts/xmppqueuehandler.php index 626db85070..5c1445bd28 100755 --- a/scripts/xmppqueuehandler.php +++ b/scripts/xmppqueuehandler.php @@ -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) {