Cancel Send

pull/209/head
M66B 2 years ago
parent 636222b2f2
commit 024b823f38

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

@ -425,6 +425,11 @@ public class FragmentDialogInsertLink extends FragmentDialogBase {
args.putInt("progress", percentage); args.putInt("progress", percentage);
postProgress(null, args); postProgress(null, args);
} }
@Override
public boolean isRunning() {
return (pbUpload != null);
}
}); });
} }
} }

Loading…
Cancel
Save