diff --git a/lib/bb/server/process.py b/lib/bb/server/process.py
index ad4035a738..b627ae0ab6 100644
--- a/lib/bb/server/process.py
+++ b/lib/bb/server/process.py
@@ -477,7 +477,7 @@ class ProcessServer():
 
             # Create new heartbeat event?
             now = time.time()
-            if bb.event._heartbeat_enabled and now >= self.next_heartbeat:
+            if items and bb.event._heartbeat_enabled and now >= self.next_heartbeat:
                 # We might have missed heartbeats. Just trigger once in
                 # that case and continue after the usual delay.
                 self.next_heartbeat += self.heartbeat_seconds
