Uploaded image for project: 'Apache Cordova'
  1. Apache Cordova
  2. CB-5805

Multiple File transfer abort problem

    XMLWordPrintableJSON

Details

    Description

      There is a threading issue when multiple files are getting downloaded and when we abort one of the download. Way to reproduce the issue.

      • Give a request to download a file1.
      • Call abort() for that file download.
      • On callback of the abort start downloading file2.
      • now abort file2.

      Current behavior - the abort() function returns the callback but actual thread but the download still happens in the background.
      Expected - The download should not continue when aborting the second file.

      Code details.

      abort() function actually removes the requests form activeRequests.
      but finally() block of download tries to remove the requests from activeRequests again causing it to fail.

      Attachments

        Activity

          People

            Unassigned Unassigned
            hariharanweb hariharan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 24h
                24h
                Remaining:
                Remaining Estimate - 24h
                24h
                Logged:
                Time Spent - Not Specified
                Not Specified