File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
AndroidExecLibrary/src/main/java/com/excellence/exec Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -172,7 +172,7 @@ public void accept(Long aLong) throws Exception {
172172 BufferedReader stdin = new BufferedReader (new InputStreamReader (mProcess .getInputStream ()));
173173 StringBuilder result = new StringBuilder ();
174174 String line = null ;
175- while (mStatus == STATUS_RUNNING && (line = stdin .readLine ()) != null ) {
175+ while ((line = stdin .readLine ()) != null ) {
176176 if (mStatus == STATUS_RUNNING ) {
177177 restartTimer ();
178178 mIListener .onProgress (line );
@@ -222,9 +222,6 @@ private void killProcess() {
222222 // close stream
223223 mProcess .destroy ();
224224 }
225- if (mCommandTask != null && !mCommandTask .isDisposed ()) {
226- mCommandTask .dispose ();
227- }
228225 }
229226
230227 protected void cancel () {
You can’t perform that action at this time.
0 commit comments