From cc29d7e1d1014b05d5b78a5e5531896b92ea6e49 Mon Sep 17 00:00:00 2001 From: Javier Date: Sun, 15 Jun 2014 18:07:26 +0200 Subject: small cleanup, preparing error signals --- gatosocket.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gatosocket.cpp') diff --git a/gatosocket.cpp b/gatosocket.cpp index e46a811..c29b154 100644 --- a/gatosocket.cpp +++ b/gatosocket.cpp @@ -90,6 +90,7 @@ bool GatoSocket::connectTo(const GatoAddress &addr, unsigned short cid) void GatoSocket::close() { if (s != StateDisconnected) { + // TODO We do not flush the writeQueue, but rather drop all data. delete readNotifier; delete writeNotifier; readQueue.clear(); @@ -144,7 +145,7 @@ void GatoSocket::readNotify() int read = ::read(fd, buf.data(), buf.size()); if (read < 0) { - qErrnoWarning("Could not read to L2 socket"); + qErrnoWarning("Could not read from L2 socket"); close(); return; } else if (read == 0) { -- cgit v1.2.3