Fix Pipe stuck

This commit is contained in:
seven332 committed 2019-01-04 21:48:33 +08:00
1 parent 116f30e496
commit 3fdf9453ef
1 file changed
+2
@@ -88,6 +88,7 @@ class Pipe {
public void close() {
synchronized (Pipe.this) {
inClosed = true;
Pipe.this.notifyAll();
}
}
};
@@ -141,6 +142,7 @@ class Pipe {
public void close() {
synchronized (Pipe.this) {
outClosed = true;
Pipe.this.notifyAll();
}
}
};