diff options
author | Alex Trotsenko <alex1973tr@gmail.com> | 2021-07-22 12:00:19 +0300 |
---|---|---|
committer | Alex Trotsenko <alex1973tr@gmail.com> | 2021-07-24 11:53:12 +0300 |
commit | 594948a07b8086c96ba720e92473c6175d4ac918 (patch) | |
tree | 58bf757e0e38fa4df28c46ae8b8d08efefd1c4b6 /src/network/socket/qnet_unix_p.h | |
parent | 3221c8dbbebc8dc5e521077ae4a191bdcfa36ffa (diff) |
QLocalSocket: call abort() instead of close() on destruction
The QLocalSocket destructor should immediately close the connection
and destroy the socket, clearing any pending data in the write buffer.
The abort() call ensures that the pipe is destroyed on Windows, making
the additional call to destroyPipeHandles() from the private destructor
unnecessary.
Change-Id: Ic7a0d8cf2779cd933cded864c8bab0d096469499
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Diffstat (limited to 'src/network/socket/qnet_unix_p.h')
0 files changed, 0 insertions, 0 deletions