From c4c9883d13d363cf914b4ef7dd5d11b593c6b515 Mon Sep 17 00:00:00 2001 From: Joerg Bornemann Date: Wed, 16 Apr 2014 15:08:59 +0200 Subject: [PATCH] fix read notification in QWindowsPipeReader::waitForPipeClosed In QWindowsPipeReader::waitForPipeClosed we must check for available bytes in the internal buffer and trigger the notified signal. This fixes tst_QLocalSocket::writeToClientAndDisconnect on Windows. Change-Id: I0f4d6cd73a0a8eac5b438b82984457068a9551d1 Reviewed-by: Oswald Buddenhagen --- src/corelib/io/qwindowspipereader.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/corelib/io/qwindowspipereader.cpp b/src/corelib/io/qwindowspipereader.cpp index df65aebcff..7dd2125e70 100644 --- a/src/corelib/io/qwindowspipereader.cpp +++ b/src/corelib/io/qwindowspipereader.cpp @@ -318,6 +318,7 @@ bool QWindowsPipeReader::waitForPipeClosed(int msecs) QElapsedTimer stopWatch; stopWatch.start(); forever { + waitForReadyRead(0); checkPipeState(); if (pipeBroken) return true;