Skip to content

Commit 9722189

Browse files
committed
fixes
Signed-off-by: Oleh Dokuka <[email protected]>
1 parent 4f4452e commit 9722189

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

rsocket-transport-netty/src/main/java/io/rsocket/transport/netty/TcpDuplexConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public final class TcpDuplexConnection extends BaseDuplexConnection {
4949
public TcpDuplexConnection(Connection connection) {
5050
this.connection = Objects.requireNonNull(connection, "connection must not be null");
5151

52-
connection.channel().closeFuture().addListener(future -> sender.dispose());
52+
connection.channel().closeFuture().addListener(future -> sender.onComplete());
5353

5454
connection
5555
.outbound()

rsocket-transport-netty/src/main/java/io/rsocket/transport/netty/WebsocketDuplexConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public final class WebsocketDuplexConnection extends BaseDuplexConnection {
5353
public WebsocketDuplexConnection(Connection connection) {
5454
this.connection = Objects.requireNonNull(connection, "connection must not be null");
5555

56-
connection.channel().closeFuture().addListener(future -> sender.dispose());
56+
connection.channel().closeFuture().addListener(future -> sender.onComplete());
5757

5858
connection
5959
.outbound()

0 commit comments

Comments
 (0)