Fix Pipe stuck
This commit is contained in:
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();
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user