bluetoothengine/bteng/src/btengsrvsettingsmgr.cpp
changeset 52 4545c04e61e1
parent 41 0b2439c3e397
child 66 b3d605f76ff8
equal deleted inserted replaced
41:0b2439c3e397 52:4545c04e61e1
   705     {
   705     {
   706     TRACE_FUNC_ENTRY
   706     TRACE_FUNC_ENTRY
   707     TRACE_INFO( ( _L( "[CBTEngSrvSettingsMgr]\t Using HCI API v2 power manager" ) ) )
   707     TRACE_INFO( ( _L( "[CBTEngSrvSettingsMgr]\t Using HCI API v2 power manager" ) ) )
   708     User::LeaveIfError( iPowerMgr.Open() );
   708     User::LeaveIfError( iPowerMgr.Open() );
   709 #ifndef __WINS__
   709 #ifndef __WINS__
   710     iPowerMgr.SetPower( EBTOff, NULL, iActive->RequestStatus() );
   710     TRequestStatus reqStatus;
   711     User::WaitForRequest( iActive->RequestStatus() );
   711     iPowerMgr.SetPower( EBTOff, NULL, reqStatus );
   712     TInt status = ( iActive->RequestStatus().Int() == KErrAlreadyExists ? KErrNone : iActive->RequestStatus().Int() ); 
   712     User::WaitForRequest( reqStatus );
       
   713     TInt status = ( reqStatus.Int() == KErrAlreadyExists ? KErrNone : reqStatus.Int() ); 
   713     User::LeaveIfError( status );
   714     User::LeaveIfError( status );
   714 #else   //__WINS__
   715 #else   //__WINS__
   715     iPowerState = EBTOff;
   716     iPowerState = EBTOff;
   716 #endif  //__WINS__
   717 #endif  //__WINS__
   717     TRACE_FUNC_EXIT
   718     TRACE_FUNC_EXIT