We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5244b06 commit c6af6a5Copy full SHA for c6af6a5
AndroidExecLibrary/src/main/java/com/excellence/exec/CommandTask.java
@@ -200,7 +200,7 @@ private void restartTimer() {
200
@Override
201
public void accept(Long aLong) throws Exception {
202
mIListener.onError(new Throwable("Time out : " + mCmd));
203
- discard();
+ interrupt();
204
}
205
});
206
@@ -226,6 +226,11 @@ private void remove() {
226
mManager.remove(this);
227
228
229
+ private void interrupt() {
230
+ killProcess();
231
+ remove();
232
+ }
233
+
234
public void discard() {
235
mStatus = STATUS_INTERRUPT;
236
killProcess();
0 commit comments