mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
WIP: Partial fix on preventsleep when downloading resource.
This commit is contained in:
committed by
Anthony Calosa
parent
f077e59745
commit
9d63eac89a
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user