diff options
author | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-06-10 04:59:41 +0000 |
---|---|---|
committer | weidai <weidai@57ff6487-cd31-0410-9ec3-f628ee90f5f0> | 2003-06-10 04:59:41 +0000 |
commit | 79714ed200a1687f3ed63bc8ff6723a5f99b59f0 (patch) | |
tree | 24480be3ac8f9faa017f6e90111ef71693183457 | |
parent | eb1855b5efed70b2af0bf03e9eaf38fc4219114e (diff) | |
download | cryptopp-79714ed200a1687f3ed63bc8ff6723a5f99b59f0.tar.gz |
fix bug in SourceExhausted()
git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@78 57ff6487-cd31-0410-9ec3-f628ee90f5f0
-rw-r--r-- | network.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -100,7 +100,7 @@ public: void GetWaitObjects(WaitObjectContainer &container); unsigned int GeneralPump2(unsigned long &byteCount, bool blockingOutput=true, unsigned long maxTime=INFINITE_TIME, bool checkDelimiter=false, byte delimiter='\n'); - bool SourceExhausted() const {return GetReceiver().EofReceived();} + bool SourceExhausted() const {return m_dataBegin == m_dataEnd && GetReceiver().EofReceived();} protected: virtual NetworkReceiver & AccessReceiver() =0; |