diff --git a/lib/bb/server/process.py b/lib/bb/server/process.py
index 4bd68b1e7f..01ce916a3d 100644
--- a/lib/bb/server/process.py
+++ b/lib/bb/server/process.py
@@ -376,7 +376,7 @@ class ProcessServer():
                 lock = bb.utils.lockfile(lockfile, shared=False, retry=False, block=False)
                 if not lock:
                     newlockcontents = get_lock_contents(lockfile)
-                    if not newlockcontents.startswith([os.getpid() + "\n", os.getpid() + " "]):
+                    if not newlockcontents[0].startswith([os.getpid() + "\n", os.getpid() + " "]):
                         # A new server was started, the lockfile contents changed, we can exit
                         serverlog("Lockfile now contains different contents, exiting: " + str(newlockcontents))
                         return
