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 0918276 commit 4831d7cCopy full SHA for 4831d7c
library/src/main/java/ashell/workers/ShellOutputStreamThread.java
@@ -42,11 +42,13 @@ public ShellOutputStreamThread(Process process) {
42
43
@Override
44
public void run() {
45
- while (true) {
46
- try {
47
- process.waitFor();
48
- } catch (InterruptedException e) {
49
- e.printStackTrace();
+ synchronized (this) {
+ while (true) {
+ try {
+ this.wait();
+ } catch (InterruptedException e) {
50
+ e.printStackTrace();
51
+ }
52
}
53
54
0 commit comments