telephonyprotocols/rawipnif/src/Receiver.cpp
changeset 49 f50f4094acd7
parent 42 3adadc800673
equal deleted inserted replaced
48:14460bf2a402 49:f50f4094acd7
    72 
    72 
    73 CReceiver::~CReceiver()
    73 CReceiver::~CReceiver()
    74 /**
    74 /**
    75  * Destructor.
    75  * Destructor.
    76  */
    76  */
    77 	{
    77     {
    78 	iData.Close();
    78     Cancel();
    79 	Cancel();
    79     // iData is a shared bit of memory between raw ip and bca
    80 	}
    80     // you cannot delete it while bca might be using it otherwise
       
    81     // bad things may happen.
       
    82     iData.Close();
       
    83     }
    81 
    84 
    82 void CReceiver::RunL()
    85 void CReceiver::RunL()
    83 /**
    86 /**
    84  *  Method called when read request completes. This will only be once the BCA has a full IP 
    87  *  Method called when read request completes. This will only be once the BCA has a full IP 
    85  *  packet in its buffer.
    88  *  packet in its buffer.