webengine/wmlengine/src/hed/src/Loader.c
branchRCL_3
changeset 47 e1bea15f9a39
parent 26 cb62a4f66ebe
equal deleted inserted replaced
46:30342f40acbf 47:e1bea15f9a39
   678   /* Loading has started. Fine. Now it's time to tell application to start to poll
   678   /* Loading has started. Fine. Now it's time to tell application to start to poll
   679      response status */
   679      response status */
   680   (void)NW_HED_ILoaderListener_LoadProgressOn(thisObj->loaderListener, *transactionId);
   680   (void)NW_HED_ILoaderListener_LoadProgressOn(thisObj->loaderListener, *transactionId);
   681 
   681 
   682   NW_CATCH (status) {
   682   NW_CATCH (status) {
       
   683     NW_ADT_Vector_Metric_t numLoadQEntries,index;
       
   684     NW_ADT_DynamicVector_t* loadQueue = NULL;
       
   685     NW_HED_Loader_LoadQEntry_t* entry = NULL;
       
   686     loadQueue = GetNW_HED_Loader_LoadQueue();
       
   687     if (loadQueue == NULL)
       
   688         {
       
   689         return KBrsrNotFound;
       
   690         }
       
   691     numLoadQEntries = NW_ADT_Vector_GetSize (loadQueue);
       
   692     for(index=0;index<numLoadQEntries;index++)
       
   693         {
       
   694         entry = (NW_HED_Loader_LoadQEntry_t*)NW_ADT_Vector_ElementAt(loadQueue,index);
       
   695         if(entry && entry->clientData == context)
       
   696             {
       
   697             entry->clientData = NULL;
       
   698             break;
       
   699             }
       
   700         }
   683     NW_Mem_Free(context);
   701     NW_Mem_Free(context);
   684   }
   702   }
   685 
   703 
   686   NW_FINALLY {
   704   NW_FINALLY {
   687     NW_Str_Delete (escapedUrl);
   705     NW_Str_Delete (escapedUrl);