equal
deleted
inserted
replaced
248 MSRPLOG2("TStateBase::handleClientListnerCancelL terminating %d", owner ); |
248 MSRPLOG2("TStateBase::handleClientListnerCancelL terminating %d", owner ); |
249 owner->TerminateReceiving( aContext, *aContext->iConnection ); |
249 owner->TerminateReceiving( aContext, *aContext->iConnection ); |
250 } |
250 } |
251 else |
251 else |
252 { |
252 { |
|
253 MSRPLOG("TStateBase::handleClientListnerCancelL completing incoming listener" ); |
253 if( aContext->iIncommingMessageListner.Check() ) |
254 if( aContext->iIncommingMessageListner.Check() ) |
254 { |
255 { |
255 aContext->iIncommingMessageListner.Complete( KErrNone ); |
256 aContext->iIncommingMessageListner.Complete( KErrNone ); |
256 } |
257 } |
257 } |
258 } |
300 |
301 |
301 MSRPLOG2("handleConnectionStateChanged::Connection Event %d \n",iConnectionEvent ); |
302 MSRPLOG2("handleConnectionStateChanged::Connection Event %d \n",iConnectionEvent ); |
302 |
303 |
303 switch(iConnectionEvent) |
304 switch(iConnectionEvent) |
304 { |
305 { |
305 case -1: // Error Scenario |
306 case -1: // Error Scenario |
|
307 { |
|
308 // empty queue |
|
309 MSRPLOG("TStateBase::handleConnectionStateChangedL, emptying queue " ); |
|
310 while ( aContext->iCurrentlyReceivingMsgQ.DeQueue() ); |
306 state = handleConnectionErrorsL(aContext); |
311 state = handleConnectionErrorsL(aContext); |
307 break; |
312 break; |
|
313 } |
308 |
314 |
309 case 1: |
315 case 1: |
310 case 2: |
316 case 2: |
311 MSRPLOG("handleConnectionStateChanged::Connection in Progress \n"); |
317 MSRPLOG("handleConnectionStateChanged::Connection in Progress \n"); |
312 state = this; |
318 state = this; |