diff -r b6139031a239 -r 928ed51ddc43 datacommsserver/esockserver/test/protocols/pdummy/PDUMMY.CPP --- a/datacommsserver/esockserver/test/protocols/pdummy/PDUMMY.CPP Fri Jan 22 10:58:59 2010 +0200 +++ b/datacommsserver/esockserver/test/protocols/pdummy/PDUMMY.CPP Tue Jan 26 13:09:14 2010 +0200 @@ -1035,16 +1035,15 @@ return 0; } - // From opposite angle, we dont need a new chain if it is a stream - // we just append to the existing, unless there isn't an existing... - if(iDataArray->Count()==0 || IsTransportType(KSockDatagram)) + // add a new chain for storing data + if(iDataArray->Count()==0 ||( iDataArray->Count()>0 && !iDataArray->At(iDataArray->Count()-1).IsEmpty())) { RMBufChain chain; TRAPD(ret, iDataArray->AppendL(chain)); if(ret!=KErrNone) return ret; } - + iDataArray->At(iDataArray->Count()-1).Append(aData); // Gotta save the length of the chain before calling