bluetoothengine/bteng/src/btengsrvsettingsmgr.cpp
changeset 45 b0aebde9b1fb
parent 42 b72428996822
child 65 001a94c71129
equal deleted inserted replaced
44:6d10bd0d821a 45:b0aebde9b1fb
   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