diff options
Diffstat (limited to 'src/network/socket/qlocalsocket_win.cpp')
-rw-r--r-- | src/network/socket/qlocalsocket_win.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/socket/qlocalsocket_win.cpp b/src/network/socket/qlocalsocket_win.cpp index f26d98a..1c32a54 100644 --- a/src/network/socket/qlocalsocket_win.cpp +++ b/src/network/socket/qlocalsocket_win.cpp @@ -604,7 +604,7 @@ bool QLocalSocket::waitForReadyRead(int msecs) case WAIT_OBJECT_0: d->_q_notified(); // We just noticed that the pipe is gone. - if (d->pipeClosed) { + if (d->pipeClosed && !bytesAvailable()) { close(); return false; } |