diff options
author | Alex Trotsenko <alex1973tr@gmail.com> | 2016-10-29 19:25:32 +0300 |
---|---|---|
committer | Alex Trotsenko <alex1973tr@gmail.com> | 2017-02-01 13:44:11 +0000 |
commit | 47cded3e6f271c86de65afee00a028cbe9826403 (patch) | |
tree | 9e3d0781e22e6c64096310c14f4862e1fa20d2fe /src/network/socket/qsocks5socketengine_p.h | |
parent | dd2a871eaefe8925c88a835bf298180044d4b0e9 (diff) |
QSocks5SocketEngine: stop polling on UDP
There is no need in additional polling, because readyRead() signal of
the inner socket is directly connected to the slot which extracts the
datagrams. Moreover, calling _q_udpSocketReadNotification() from the
engine code might cause the spurious notifications both in the outer
and inner sockets.
Change-Id: Ibe75f5990e27b7460d628fa4a1ca4e64657e302c
Reviewed-by: Timur Pocheptsov <timur.pocheptsov@qt.io>
Diffstat (limited to 'src/network/socket/qsocks5socketengine_p.h')
-rw-r--r-- | src/network/socket/qsocks5socketengine_p.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/src/network/socket/qsocks5socketengine_p.h b/src/network/socket/qsocks5socketengine_p.h index 864b163489..ec50d71283 100644 --- a/src/network/socket/qsocks5socketengine_p.h +++ b/src/network/socket/qsocks5socketengine_p.h @@ -248,7 +248,6 @@ public: void _q_controlSocketReadNotification(); void _q_controlSocketError(QAbstractSocket::SocketError); #ifndef QT_NO_UDPSOCKET - void checkForDatagrams() const; void _q_udpSocketReadNotification(); #endif void _q_controlSocketBytesWritten(); |