From d82ffb9d6b8b36c302b6fa50ca64422871ffed34 Mon Sep 17 00:00:00 2001 From: lambdadroid Date: Wed, 16 Jan 2019 19:10:39 +0100 Subject: [PATCH] Avoid logging handlePageFlip() warning after disconnect This usually happens once after disconnecting a display, because the disconnection code resets mFlipPending (in case the flip never succeeds successfully). We can just ignore the warning in this case. --- DrmDisplay.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/DrmDisplay.cpp b/DrmDisplay.cpp index f2c756c..528341e 100644 --- a/DrmDisplay.cpp +++ b/DrmDisplay.cpp @@ -199,7 +199,7 @@ drmEventContext pageFlipEvCtx = { void DrmDisplay::handlePageFlip() { if (mFlipPending) { mFlipPending = false; - } else { + } else if (mConnected) { LOG(WARNING) << "handlePageFlip() called for display " << *this << " without flip pending"; } -- 2.11.0