WIP: Partial fix on preventsleep when downloading resource.

This commit is contained in:
kevlahnota
2019-08-24 18:14:35 +08:00
committed by Anthony Calosa
parent f077e59745
commit 9d63eac89a
3 changed files with 12 additions and 1 deletions

View File

@@ -255,7 +255,9 @@ public abstract class GuiDownloadService implements Runnable {
byte[] buffer = new byte[1024];
for (Entry<String, String> kv : files.entrySet()) {
if (cancel) { break; }
if (cancel) {//stop prevent sleep
GuiBase.getInterface().preventSystemSleep(false);
break; }
count++;
cardSkipped = true; //assume skipped unless saved successfully