problem: call already closed exception, onError closes it
This commit is contained in:
@@ -59,7 +59,6 @@ class StreamHead(
|
|||||||
val sender = StreamSender(client)
|
val sender = StreamSender(client)
|
||||||
if (!clients.containsKey(chain)) {
|
if (!clients.containsKey(chain)) {
|
||||||
client.onError(Exception("Chain ${chain.chainCode} is not available for streaming"))
|
client.onError(Exception("Chain ${chain.chainCode} is not available for streaming"))
|
||||||
client.onCompleted()
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
clients[chain]!!.add(sender)
|
clients[chain]!!.add(sender)
|
||||||
|
|||||||
Reference in New Issue
Block a user