diff options
author | Alex Trotsenko <alex1973tr@gmail.com> | 2016-03-09 18:59:33 +0200 |
---|---|---|
committer | Alex Trotsenko <alex1973tr@gmail.com> | 2016-03-15 16:41:30 +0000 |
commit | 510272ce6c60fb5304db07f67b7ef67dee9e85f4 (patch) | |
tree | 3fd934990bad88e43dac2613cd38c75ae1ed5174 /mkspecs/features/default_pre.prf | |
parent | 3d3b056f8956281aa93e4c3192ec479a2ed845b0 (diff) |
QAbstractSocket: do not try to disable write notifications twice
When canWriteNotication() is called and the socket successfully writes
a chunk of data, then condition for disabling the notifications will be
checked both in writeToSocket() and canWriteNotification(). Moving the
code which handles notifications' state from canWriteNotification() to
another branch in writeToSocket() eliminates a duplication and forces
writeToSocket() to handle disabling the notifications in all cases.
Change-Id: I6c14db552afe77b0cf1c9f5c511bafa127a45fe5
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: Markus Goetz (Woboq GmbH) <markus@woboq.com>
Diffstat (limited to 'mkspecs/features/default_pre.prf')
0 files changed, 0 insertions, 0 deletions