From e3e0c6c7d2d37b902060ffefc27270675fbf246b Mon Sep 17 00:00:00 2001 From: weidai Date: Tue, 27 May 2003 07:08:11 +0000 Subject: copy fix over from 4.x branch git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@75 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- zinflate.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'zinflate.cpp') diff --git a/zinflate.cpp b/zinflate.cpp index 2582cf1..685268f 100644 --- a/zinflate.cpp +++ b/zinflate.cpp @@ -303,9 +303,6 @@ void Inflator::ProcessInput(bool flush) { while (true) { - if (m_inQueue.IsEmpty()) - return; - switch (m_state) { case PRE_STREAM: @@ -337,6 +334,8 @@ void Inflator::ProcessInput(bool flush) ProcessPoststreamTail(); m_state = m_repeat ? PRE_STREAM : AFTER_END; Output(0, NULL, 0, GetAutoSignalPropagation(), true); // TODO: non-blocking + if (m_inQueue.IsEmpty()) + return; break; case AFTER_END: m_inQueue.TransferTo(*AttachedTransformation()); -- cgit v1.2.1