Skip to content

Commit aa37d79

Browse files
committed
actually stop keep-alive on closed connection
Signed-off-by: Maksym Ostroverkhov <m.ostroverkhov@gmail.com>
1 parent 350da17 commit aa37d79

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

rsocket-core/src/main/java/io/rsocket/keepalive/KeepAliveHandler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ public KeepAliveFramesAcceptor start(
2525
KeepAliveSupport keepAliveSupport,
2626
Consumer<ByteBuf> onSendKeepAliveFrame,
2727
Consumer<KeepAlive> onTimeout) {
28-
duplexConnection.onClose().subscribe(v -> keepAliveSupport.stop());
28+
duplexConnection.onClose().doFinally(s -> keepAliveSupport.stop()).subscribe();
2929
return keepAliveSupport
3030
.onSendKeepAliveFrame(onSendKeepAliveFrame)
3131
.onTimeout(onTimeout)

0 commit comments

Comments
 (0)