diff --git a/src/github/daneren2005/serverproxy/BufferFile.java b/src/github/daneren2005/serverproxy/BufferFile.java index f05bd42..59b306a 100644 --- a/src/github/daneren2005/serverproxy/BufferFile.java +++ b/src/github/daneren2005/serverproxy/BufferFile.java @@ -24,4 +24,5 @@ public interface BufferFile { boolean isWorkDone(); void onStart(); void onStop(); + void onResume(); } diff --git a/src/github/daneren2005/serverproxy/BufferProxy.java b/src/github/daneren2005/serverproxy/BufferProxy.java index 3b92e1b..9695365 100644 --- a/src/github/daneren2005/serverproxy/BufferProxy.java +++ b/src/github/daneren2005/serverproxy/BufferProxy.java @@ -67,6 +67,10 @@ public void onStart() { public void onStop() { progress.onStop(); } + @Override + public void onResume() { + progress.onResume(); + } @Override public boolean isWorkDone() { diff --git a/src/github/daneren2005/serverproxy/FileProxy.java b/src/github/daneren2005/serverproxy/FileProxy.java index 0eab30f..8cc4668 100644 --- a/src/github/daneren2005/serverproxy/FileProxy.java +++ b/src/github/daneren2005/serverproxy/FileProxy.java @@ -133,6 +133,7 @@ public void run() { // Loop as long as there's stuff to send while (isRunning && !client.isClosed()) { + onResume(); // See if there's more to send int cbSentThisBatch = 0; @@ -200,6 +201,9 @@ public void onStart() { } public void onStop() { + } + public void onResume() { + } public boolean isWorkDone() { return cbSkip >= file.length();