UI/updater: Always clean up temporary files
If an update failed to install, it would leave a single temporary file behind for that particular patch / file.
This commit is contained in:
parent
38ad3ba18f
commit
c0d7602b64
@ -298,6 +298,8 @@ struct update_t {
|
|||||||
} else {
|
} else {
|
||||||
DeleteFile(outputPath.c_str());
|
DeleteFile(outputPath.c_str());
|
||||||
}
|
}
|
||||||
|
if (state == STATE_INSTALL_FAILED)
|
||||||
|
DeleteFile(tempPath.c_str());
|
||||||
} else if (state == STATE_DOWNLOADED) {
|
} else if (state == STATE_DOWNLOADED) {
|
||||||
DeleteFile(tempPath.c_str());
|
DeleteFile(tempPath.c_str());
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user