imagehandlingutilities/thumbnailmanager/thumbnailclient/src/thumbnailrequestactive.cpp
equal
deleted
inserted
replaced
841 { |
841 { |
842 TN_DEBUG1( "CThumbnailRequestActive::TimerCallBack() - request timeout"); |
842 TN_DEBUG1( "CThumbnailRequestActive::TimerCallBack() - request timeout"); |
843 |
843 |
844 CThumbnailRequestActive* self = static_cast<CThumbnailRequestActive*>( aAny ); |
844 CThumbnailRequestActive* self = static_cast<CThumbnailRequestActive*>( aAny ); |
845 |
845 |
|
846 self->iTimer->Cancel(); |
|
847 |
|
848 if (self->IsActive()) |
|
849 { |
|
850 // hangs without this |
|
851 TRequestStatus* statusPtr = &self->iStatus; |
|
852 User::RequestComplete( statusPtr, KErrTimedOut ); |
|
853 } |
|
854 |
846 self->Cancel(); |
855 self->Cancel(); |
847 self->iTimer->Cancel(); |
|
848 |
856 |
849 if (self->iStartError != KErrNone) |
857 if (self->iStartError != KErrNone) |
850 { |
858 { |
851 self->iError = self->iStartError; |
859 self->iError = self->iStartError; |
852 } |
860 } |
855 self->iError = KErrTimedOut; |
863 self->iError = KErrTimedOut; |
856 } |
864 } |
857 |
865 |
858 self->HandleError(); |
866 self->HandleError(); |
859 |
867 |
|
868 TN_DEBUG1( "CThumbnailRequestActive::TimerCallBack() - end"); |
|
869 |
860 return KErrNone; |
870 return KErrNone; |
861 } |
871 } |
862 |
872 |
863 // End of file |
873 // End of file |