Cancel Send

This commit is contained in:
M66B
2022-09-29 22:25:53 +02:00
parent 636222b2f2
commit 024b823f38
2 changed files with 10 additions and 0 deletions

View File

@@ -185,6 +185,9 @@ public class Send {
ws.sendBinary(message);
seq++;
if (!intf.isRunning())
throw new InterruptedException();
}
Log.i("Send EOF size=" + size);
@@ -261,5 +264,7 @@ public class Send {
public interface IProgress {
void onProgress(int percentage);
boolean isRunning();
}
}