winrt: only emit readRead signal if the notifyOnRead flag is set
Change-Id: Ie52ddc8b0f70ad64d8f503b1942b9da6b72d6c99 Reviewed-by: Samuel Nevala <samuel.nevala@intopalo.com> Reviewed-by: Maurice Kalinowski <maurice.kalinowski@theqtcompany.com>
This commit is contained in:
parent
1e229c7041
commit
db051bc04f
@ -1197,6 +1197,7 @@ HRESULT QNativeSocketEnginePrivate::handleClientConnection(IStreamSocketListener
|
||||
args->get_Socket(&socket);
|
||||
pendingConnections.append(socket);
|
||||
emit q->connectionReady();
|
||||
if (notifyOnRead)
|
||||
emit q->readReady();
|
||||
return S_OK;
|
||||
}
|
||||
@ -1381,6 +1382,7 @@ HRESULT QNativeSocketEnginePrivate::handleNewDatagram(IDatagramSocket *socket, I
|
||||
hr = reader->ReadBytes(length, reinterpret_cast<BYTE *>(datagram.data.data()));
|
||||
RETURN_OK_IF_FAILED("Could not read datagram");
|
||||
pendingDatagrams.append(datagram);
|
||||
if (notifyOnRead)
|
||||
emit q->readReady();
|
||||
|
||||
return S_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user