diff -r 924385140d98 -r c2c61fdca848 contextframework/cfwplugins/sensorsourceplugin/src/sensorchannelbase.cpp --- a/contextframework/cfwplugins/sensorsourceplugin/src/sensorchannelbase.cpp Tue Aug 31 15:24:25 2010 +0300 +++ b/contextframework/cfwplugins/sensorsourceplugin/src/sensorchannelbase.cpp Wed Sep 01 12:24:48 2010 +0100 @@ -13,6 +13,7 @@ * * Description: CSensorChannelBase class implementation. * +* */ @@ -235,9 +236,8 @@ TInt aDataLost ) { FUNC_LOG; - - TRAP_IGNORE( HandleDataReceivedL( aChannel, aCount, aDataLost ) ); - + + // If we are fetching initial value, make sure that the channel is closed // properly if there are no active connections if( !SensorActive() && iState == EChannelStateInitializing ) @@ -247,6 +247,7 @@ } else { + TRAP_IGNORE( HandleDataReceivedL( aChannel, aCount, aDataLost ) ); // Active connections received, change state ChangeState( EChannelStateActive ); } @@ -631,3 +632,4 @@ } // End of file +