We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fbffaf1 commit 3756c6bCopy full SHA for 3756c6b
workflow-trace-viewer/src/jvmMain/kotlin/com/squareup/workflow1/traceviewer/util/SocketClient.kt
@@ -58,8 +58,7 @@ internal class SocketClient {
58
val reader = socket.getInputStream().bufferedReader()
59
try {
60
while (true) {
61
- val input = reader.readLine()
62
- renderPassChannel.trySend(input)
+ reader.readLine()?.let(renderPassChannel::trySend)
63
}
64
} catch (e: SocketException) {
65
println("Exiting socket listener due to: ${e.message}")
0 commit comments