]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
Use correct check logic
authorMladen Turk <mturk@apache.org>
Mon, 30 Mar 2009 06:38:14 +0000 (06:38 +0000)
committerMladen Turk <mturk@apache.org>
Mon, 30 Mar 2009 06:38:14 +0000 (06:38 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@759849 13f79535-47bb-0310-9956-ffa450edef68

modules/cluster/mod_heartbeat.c

index d5d276f49def737d2300e2d25a67e18d68bc5139..f747e8d44ebba5fb5cf20002f25d12cdc34e6197 100644 (file)
@@ -136,7 +136,7 @@ static int hb_watchdog_step(server_rec *s, const char *name, apr_pool_t *pool)
     apr_status_t rv;
     hb_ctx_t *ctx = ap_get_module_config(s->module_config, &heartbeat_module);
 
-    if (!ctx->active && strcmp(name, AP_WATCHDOG_SINGLETON)) {
+    if (!ctx->active || strcmp(name, AP_WATCHDOG_SINGLETON)) {
         return OK;
     }
     return hb_monitor(ctx, pool);