Android Question Stop uploading - PostInputStream

thisismrb

Member
Hello,
I tried to stop uploading by closing the CountingInputStream. However, it doesn't work and Job continues uploading.
UploadService:
Sub Cancel_Upload
    EndTimer
    
    For Each job As HttpJob In jobs.Values
        
        job.cancelUpload
        job.cin.Close
        CallSub(Main,"Kill_upload")
    Next
End Sub

HttpJob:
Public Sub cancelUpload
    If cin<>Null And cin.IsInitialized Then
        cin.Close
        
        JobName = "Cancel"
        
    End If
    lTotalSize=-1
End Sub
 
Top