summaryrefslogtreecommitdiff
path: root/scripts/xmppconfirmhandler.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-04-23 03:22:37 -0400
committerEvan Prodromou <evan@controlyourself.ca>2009-04-23 03:22:37 -0400
commit77c5aecaf5764ad0bfc6f95e5320def61d859c37 (patch)
treea4d6573e99081f3e4bafdac56a95f432d1c00692 /scripts/xmppconfirmhandler.php
parent546ab05dba507b67f40eff9aa17f684e2f9f244b (diff)
parentaf89dcadee63f4de1546abc6cebd50948b4bc42c (diff)
Merge branch 'dev/0.8.x' into 0.8.x
Diffstat (limited to 'scripts/xmppconfirmhandler.php')
-rwxr-xr-xscripts/xmppconfirmhandler.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/xmppconfirmhandler.php b/scripts/xmppconfirmhandler.php
index 2b8b085ce..7f39235fe 100755
--- a/scripts/xmppconfirmhandler.php
+++ b/scripts/xmppconfirmhandler.php
@@ -140,6 +140,13 @@ class XmppConfirmHandler extends XmppQueueHandler
}
}
+// Abort immediately if xmpp is not enabled, otherwise the daemon chews up
+// lots of CPU trying to connect to unconfigured servers
+if (common_config('xmpp','enabled')==false) {
+ print "Aborting daemon - xmpp is disabled\n";
+ exit();
+}
+
ini_set("max_execution_time", "0");
ini_set("max_input_time", "0");
set_time_limit(0);