check for heartbeat only if heartneat is enabled

This commit is contained in:
Unbit
2014-02-06 07:02:58 +01:00
parent bcb8321480
commit b801f839fc
+1 -1
View File
@@ -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) {