Skip to content

Commit

Permalink
wifi firmware update fix
Browse files Browse the repository at this point in the history
  • Loading branch information
elijahparker committed Dec 11, 2018
1 parent d1f956a commit 07d41f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/updates.js
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ function download(href, path, progressCallback, callback) {
});
dl.on('end', function(output) {
console.log("UPDATES: download complete: ", output);
if(dl.cancelled) {
if(dl && dl.cancelled) {
callback("cancelled");
} else {
callback(null, path);
Expand Down

0 comments on commit 07d41f1

Please sign in to comment.