From f58a0b3a1f657124076b96ba092e1f69e88af263 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Mon, 18 Jun 2007 20:25:50 +0000 Subject: Added the atom class and did some more client work, it will close the socket now when the end has been reached. --- src/client.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/client.cpp') diff --git a/src/client.cpp b/src/client.cpp index cf96424..6d7d81c 100644 --- a/src/client.cpp +++ b/src/client.cpp @@ -47,6 +47,11 @@ void Bu::Client::processInput() } } + if( nTotal == 0 ) + { + pSocket->close(); + } + if( pProto && nTotal ) { pProto->onNewData( this ); -- cgit v1.2.3