fix bug 9582 RCL_2_1
authorChad Peckham <chad.peckham@nokia.com>
Wed, 12 Aug 2009 10:09:44 -0500
branchRCL_2_1
changeset 423 d23909ab8f1b
parent 422 92d7efac8a15
child 445 339bf2142549
fix bug 9582
connectivity/com.nokia.tcf/native/TCFNative/TCFCommTCP/TcpComm.cpp
--- a/connectivity/com.nokia.tcf/native/TCFNative/TCFCommTCP/TcpComm.cpp	Wed Aug 12 10:09:05 2009 -0500
+++ b/connectivity/com.nokia.tcf/native/TCFNative/TCFCommTCP/TcpComm.cpp	Wed Aug 12 10:09:44 2009 -0500
@@ -533,7 +533,12 @@
 				}
 				else
 				{
-					done = true;
+					numberProcessed++;
+					usedLen += fullMessageLength;
+					bytesRemaining -= fullMessageLength;
+					ptr += fullMessageLength;
+					if (bytesRemaining < protocolHeaderLength)
+						done = true;
 				}
 			}
 			DeleteMsg(usedLen);