alwayson_net_plugin/pdpcontextmanager2/src/caotimer.cpp
changeset 3 f7816ffc66ed
parent 0 5a93021fdf25
child 41 bbb64eb3bdee
equal deleted inserted replaced
2:086aae6fc07e 3:f7816ffc66ed
   208 //
   208 //
   209 TBool CAOTimer::UnconnectTimerDisabled() const
   209 TBool CAOTimer::UnconnectTimerDisabled() const
   210     {
   210     {
   211     LOG_1( _L("CAOTimer::UnconnectTimerDisabled") );
   211     LOG_1( _L("CAOTimer::UnconnectTimerDisabled") );
   212     
   212     
   213     return iSettings.UnconnectTimerValue() == 0;
   213     if ( iSettings.IsCellularAllowedByUser() )
       
   214         {
       
   215         return iSettings.UnconnectTimerValue() == 0;
       
   216         }
       
   217     else
       
   218         {
       
   219         // There should be no retries because user
       
   220         // does not allow cellular connections.
       
   221         return ETrue;
       
   222         }
   214     }
   223     }
   215 
   224 
   216 // ---------------------------------------------------------------------------
   225 // ---------------------------------------------------------------------------
   217 // CAOTimer::CAOTimer
   226 // CAOTimer::CAOTimer
   218 // ---------------------------------------------------------------------------
   227 // ---------------------------------------------------------------------------