telephonyprotocols/rawipnif/src/Receiver.cpp
branchRCL_3
changeset 17 1ac40e087278
parent 10 4284d6390a82
child 19 630d2f34d719
equal deleted inserted replaced
15:8b9e023e329f 17:1ac40e087278
    69 
    69 
    70 CReceiver::~CReceiver()
    70 CReceiver::~CReceiver()
    71 /**
    71 /**
    72  * Destructor.
    72  * Destructor.
    73  */
    73  */
    74 	{
    74     {
    75 	iData.Close();
    75     Cancel();
    76 	Cancel();
    76     // iData is a shared bit of memory between raw ip and bca
    77 	}
    77     // you cannot delete it while bca might be using it otherwise
       
    78     // bad things may happen.
       
    79     iData.Close();
       
    80     }
    78 
    81 
    79 void CReceiver::RunL()
    82 void CReceiver::RunL()
    80 /**
    83 /**
    81  *  Method called when read request completes. This will only be once the BCA has a full IP 
    84  *  Method called when read request completes. This will only be once the BCA has a full IP 
    82  *  packet in its buffer.
    85  *  packet in its buffer.