1
0
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:
Bryan Roe
2019-02-13 15:57:32 -08:00
parent 65e44f0a9d
commit 76fac42a5f
3 changed files with 59 additions and 4 deletions

View File

@@ -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;