Skip to content

Commit c85f875

Browse files
authored
Fix one more ClosedSendChannelException (#514)
1 parent 204bb60 commit c85f875

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

krpc/krpc-core/src/commonMain/kotlin/kotlinx/rpc/krpc/internal/KrpcReceiveHandler.kt

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,9 @@ internal class KrpcStoringReceiveHandler(
113113
serviceId = message.serviceId,
114114
)
115115

116-
this@KrpcStoringReceiveHandler.sender.sendMessage(callException)
116+
this@KrpcStoringReceiveHandler.sender.sendMessageChecked(callException) {
117+
// ignore, call was already closed
118+
}
117119
}
118120

119121
buffer.close(e)

0 commit comments

Comments
 (0)