diff options
| author | Mike Buland <eichlan@xagasoft.com> | 2007-06-18 20:25:50 +0000 |
|---|---|---|
| committer | Mike Buland <eichlan@xagasoft.com> | 2007-06-18 20:25:50 +0000 |
| commit | f58a0b3a1f657124076b96ba092e1f69e88af263 (patch) | |
| tree | c8b509438ed537f673d1b4b8cf5d9c97e00ff3c6 /src/client.cpp | |
| parent | 8b12972092777af56ae21f65b41f4c40d52c2367 (diff) | |
| download | libbu++-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.cpp | 5 |
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 ); |
