From b801f839fcebc95ff36b185eec6d10812d961657 Mon Sep 17 00:00:00 2001 From: Unbit Date: Thu, 6 Feb 2014 07:02:58 +0100 Subject: [PATCH] check for heartbeat only if heartneat is enabled --- core/utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/utils.c b/core/utils.c index 1a2fa12b..ce125094 100644 --- a/core/utils.c +++ b/core/utils.c @@ -1491,7 +1491,7 @@ int wsgi_req_accept(int queue, struct wsgi_request *wsgi_req) { } // check for heartbeat - if (timeout > 0 || ret == 0) { + if (uwsgi.has_emperor && uwsgi.heartbeat) { uwsgi_heartbeat(); // no need to continue if timed-out if (ret == 0) {