Skip to content

Commit d0bbd9d

Browse files
committed
update: super calls rather than ctx fire directly
1 parent d05f93e commit d0bbd9d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/main/java/io/r2dbc/postgresql/client/SSLSessionHandlerAdapter.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,17 @@ final class SSLSessionHandlerAdapter extends AbstractPostgresSSLHandlerAdapter {
4040
}
4141

4242
@Override
43-
public void channelActive(ChannelHandlerContext ctx) {
43+
public void channelActive(ChannelHandlerContext ctx) throws Exception {
4444
Mono.from(SSLRequest.INSTANCE.encode(this.alloc)).subscribe(ctx::writeAndFlush);
45-
ctx.fireChannelActive();
45+
super.channelActive(ctx);
4646
}
4747

4848
@Override
49-
public void channelInactive(ChannelHandlerContext ctx) {
49+
public void channelInactive(ChannelHandlerContext ctx) throws Exception {
5050
// If we receive channel inactive before removing this handler, then the inbound has closed early.
5151
PostgresqlSslException e = new PostgresqlSslException("Connection closed during SSL negotiation");
5252
completeHandshakeExceptionally(e);
53-
ctx.fireChannelInactive();
53+
super.channelInactive(ctx);
5454
}
5555

5656
@Override

0 commit comments

Comments
 (0)