summaryrefslogtreecommitdiffstats
path: root/src/network/socket/qabstractsocket_p.h
diff options
context:
space:
mode:
authorAlex Trotsenko <alex1973tr@gmail.com>2015-09-06 12:16:08 +0300
committerAlex Trotsenko <alex1973tr@gmail.com>2015-09-09 14:58:37 +0000
commit25c0fdc885c675c0253adc4d8a7b528ad88e49e3 (patch)
treecf1b6d8b715418634a1195f367484e6edd3f3153 /src/network/socket/qabstractsocket_p.h
parent14960f52276d82600913b52b0ebbf4d5372debe2 (diff)
Do not emit readyRead() recursively on close notification
QAbstractSocket already prevents from the recursive readyRead() emission in canReadNotification(). Follow this behavior in case the socket receives a close notification. Change-Id: Ifd916d60252832c19e0dcdeaa8dde8af75b45cf7 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/network/socket/qabstractsocket_p.h')
-rw-r--r--src/network/socket/qabstractsocket_p.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/network/socket/qabstractsocket_p.h b/src/network/socket/qabstractsocket_p.h
index 85e82aef47..93724ae29e 100644
--- a/src/network/socket/qabstractsocket_p.h
+++ b/src/network/socket/qabstractsocket_p.h
@@ -135,6 +135,7 @@ public:
void fetchConnectionParameters();
void setupSocketNotifiers();
bool readFromSocket();
+ void emitReadyRead();
qint64 readBufferMaxSize;
QRingBuffer writeBuffer;