all channels are socket channels

This commit is contained in:
Vaci Koblizek 2020-11-26 16:52:47 +00:00
parent a3837e6010
commit b5c1c48c4f

View file

@ -70,9 +70,7 @@ public class TwoPartyVatNetwork
var result = this.previousWrite.whenComplete((void_, exc) -> {
try {
if (this.channel instanceof AsynchronousSocketChannel) {
((AsynchronousSocketChannel)this.channel).shutdownOutput();
}
this.channel.shutdownOutput();
}
catch (Exception ignored) {
}