mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-26 05:03:15 +00:00
Added 'abort' to wget and clientRequest
This commit is contained in:
@@ -53,6 +53,10 @@ function wget(remoteUri, localFilePath)
|
||||
}
|
||||
|
||||
ret._totalBytes = 0;
|
||||
ret.abort = function()
|
||||
{
|
||||
this._request.abort();
|
||||
}
|
||||
ret._request = http.get(remoteUri);
|
||||
ret._localFilePath = localFilePath;
|
||||
ret._request.promise = ret;
|
||||
|
||||
Reference in New Issue
Block a user