summaryrefslogtreecommitdiffstats
path: root/src/plugins
diff options
context:
space:
mode:
authorAlex Trotsenko <alex1973tr@gmail.com>2016-03-26 15:28:19 +0200
committerAlex Trotsenko <alex1973tr@gmail.com>2016-08-11 06:53:27 +0000
commit04e676c03cf7c320bd5c5a21dfcb62613af711b6 (patch)
tree8610cc5ead76eae7ca144db6170c140404004a3d /src/plugins
parent8ba384a5645aebbefe34b814828024d511171497 (diff)
QAbstractSocket: prevent waitForReadyRead() from early exit
According to documentation, waitForReadyRead() returns 'true' if the readyRead() signal is emitted and there is new data available for reading. Thus, waitForReadyRead() is being blocked in cycle until canReadNotification() will return 'true'. This patch adjusts canReadNotification() to return 'true' only when new data arrives on buffered socket that ensures waitForReadyRead() to succeed correctly. Change-Id: Ic38c4a4dd8ef9128f04b6c1d5f3d03068f6c9894 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/plugins')
0 files changed, 0 insertions, 0 deletions