diff options
author | Sarven Capadisli <csarven@controlyourself.ca> | 2009-04-16 21:59:40 +0000 |
---|---|---|
committer | Sarven Capadisli <csarven@controlyourself.ca> | 2009-04-16 21:59:40 +0000 |
commit | 864c4066a6f9ebe6c899fc3448365c6c2348a3c8 (patch) | |
tree | baa2925a0ae42743db92d045cf9754245d887ffd /scripts/publicqueuehandler.php | |
parent | c3a44d2ab982c42aaece2785316416a8ea780873 (diff) | |
parent | 4d0e4f733bdfa281487f370b70f5f7440a7ef931 (diff) |
Merge branch '0.7.x' of git@gitorious.org:laconica/dev into 0.7.x
Diffstat (limited to 'scripts/publicqueuehandler.php')
-rwxr-xr-x | scripts/publicqueuehandler.php | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scripts/publicqueuehandler.php b/scripts/publicqueuehandler.php index 5075c12df..b0fa22d43 100755 --- a/scripts/publicqueuehandler.php +++ b/scripts/publicqueuehandler.php @@ -52,6 +52,13 @@ class PublicQueueHandler 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); |