This commit is contained in:
Redkale
2020-06-26 22:06:22 +08:00
parent a2178b9a5f
commit 76a7e92787

View File

@@ -532,6 +532,9 @@ public class TcpNioAsyncConnection extends AsyncConnection {
@Override
public final void close() throws IOException {
super.close();
if (this.connectKey != null) this.connectKey.cancel();
if (this.readKey != null) this.readKey.cancel();
if (this.writeKey != null) this.writeKey.cancel();
channel.close();
}
}