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 <oswald.buddenhagen@digia.com>
bb10
Joerg Bornemann 2014-04-16 15:08:59 +02:00 committed by The Qt Project
parent 0c3301f0b1
commit c4c9883d13
1 changed files with 1 additions and 0 deletions

View File

@ -318,6 +318,7 @@ bool QWindowsPipeReader::waitForPipeClosed(int msecs)
QElapsedTimer stopWatch;
stopWatch.start();
forever {
waitForReadyRead(0);
checkPipeState();
if (pipeBroken)
return true;