We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 19a9e4d commit 40e9aa1Copy full SHA for 40e9aa1
arduino-core/src/cc/arduino/utils/network/FileDownloader.java
@@ -207,8 +207,10 @@ private void downloadFile() throws InterruptedException {
207
file.write(buffer, 0, read);
208
setDownloaded(getDownloaded() + read);
209
210
- if (Thread.interrupted())
+ if (Thread.interrupted()) {
211
+ file.close();
212
throw new InterruptedException();
213
+ }
214
}
215
216
if (getDownloadSize() != null) {
0 commit comments