Skip to content

Commit 8a41b41

Browse files
committed
fixes sink result check condition
Signed-off-by: Oleh Dokuka <[email protected]>
1 parent 76955f0 commit 8a41b41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rsocket-core/src/main/java/io/rsocket/resume/ResumableDuplexConnection.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ void initConnection(DuplexConnection nextConnection) {
115115
frameReceivingSubscriber.dispose();
116116
disposable.dispose();
117117
Sinks.EmitResult result = onConnectionClosedSink.tryEmitNext(currentConnectionIndex);
118-
if (result.equals(Sinks.EmitResult.OK)) {
118+
if (!result.equals(Sinks.EmitResult.OK)) {
119119
logger.error("Failed to notify session of closed connection: {}", result);
120120
}
121121
})

0 commit comments

Comments
 (0)