summaryrefslogtreecommitdiff
path: root/src/client.cpp
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2007-06-18 20:25:50 +0000
committerMike Buland <eichlan@xagasoft.com>2007-06-18 20:25:50 +0000
commitf58a0b3a1f657124076b96ba092e1f69e88af263 (patch)
treec8b509438ed537f673d1b4b8cf5d9c97e00ff3c6 /src/client.cpp
parent8b12972092777af56ae21f65b41f4c40d52c2367 (diff)
downloadlibbu++-f58a0b3a1f657124076b96ba092e1f69e88af263.tar.gz
libbu++-f58a0b3a1f657124076b96ba092e1f69e88af263.tar.bz2
libbu++-f58a0b3a1f657124076b96ba092e1f69e88af263.tar.xz
libbu++-f58a0b3a1f657124076b96ba092e1f69e88af263.zip
Added the atom class and did some more client work, it will close the socket
now when the end has been reached.
Diffstat (limited to 'src/client.cpp')
-rw-r--r--src/client.cpp5
1 files changed, 5 insertions, 0 deletions
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()
47 } 47 }
48 } 48 }
49 49
50 if( nTotal == 0 )
51 {
52 pSocket->close();
53 }
54
50 if( pProto && nTotal ) 55 if( pProto && nTotal )
51 { 56 {
52 pProto->onNewData( this ); 57 pProto->onNewData( this );