Index: lib/downloader.js |
=================================================================== |
--- a/lib/downloader.js |
+++ b/lib/downloader.js |
@@ -309,17 +309,17 @@ |
request.addEventListener("load", event => |
{ |
if (onShutdown.done) |
return; |
this._downloading.delete(downloadable.url); |
// Status will be 0 for non-HTTP requests |
- if (request.status && request.status != 200) |
+ if (request.status && request.status !== 200) |
{ |
errorCallback("synchronize_connection_error"); |
return; |
} |
downloadable.downloadCount++; |
this.onDownloadSuccess( |