summaryrefslogtreecommitdiffstats
path: root/src/network
diff options
context:
space:
mode:
authorJoerg Bornemann <joerg.bornemann@nokia.com>2010-06-10 12:16:24 (GMT)
committerJoerg Bornemann <joerg.bornemann@nokia.com>2010-06-10 13:31:19 (GMT)
commit073d04f1c2c5dc7020469bfc92708dce634f4779 (patch)
treeb482b622bc5af19fa9419663b2b8de1634b5e1a2 /src/network
parent98da12415aa8bb7497120cd841e7a798e3e5206e (diff)
downloadQt-073d04f1c2c5dc7020469bfc92708dce634f4779.zip
Qt-073d04f1c2c5dc7020469bfc92708dce634f4779.tar.gz
Qt-073d04f1c2c5dc7020469bfc92708dce634f4779.tar.bz2
QLocalSocket: don't emit readChannelFinished() twice on Windows
Reviewed-by: ossi
Diffstat (limited to 'src/network')
-rw-r--r--src/network/socket/qlocalsocket_win.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/network/socket/qlocalsocket_win.cpp b/src/network/socket/qlocalsocket_win.cpp
index aa597da..2223ebe 100644
--- a/src/network/socket/qlocalsocket_win.cpp
+++ b/src/network/socket/qlocalsocket_win.cpp
@@ -252,6 +252,9 @@ void QLocalSocketPrivate::startAsyncRead()
{
do {
DWORD bytesToRead = checkPipeState();
+ if (pipeClosed)
+ return;
+
if (bytesToRead == 0) {
// There are no bytes in the pipe but we need to
// start the overlapped read with some buffer size.