From b5f7c109b23e0a400d05f8bf8cee731db4765250 Mon Sep 17 00:00:00 2001 From: Robinson Date: Sun, 27 Jun 2021 20:51:58 +0200 Subject: [PATCH] Fixed deprecated channel offer method --- src/dorkbox/network/rmi/ResponseManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/dorkbox/network/rmi/ResponseManager.kt b/src/dorkbox/network/rmi/ResponseManager.kt index 8826ffd7..088b1975 100644 --- a/src/dorkbox/network/rmi/ResponseManager.kt +++ b/src/dorkbox/network/rmi/ResponseManager.kt @@ -73,7 +73,7 @@ internal class ResponseManager(private val logger: KLogger, private val actionDi actionDispatch.launch { try { for (it in ids) { - waiterCache.offer(ResponseWaiter(it)) + waiterCache.trySend(ResponseWaiter(it)) } } catch (e: ClosedSendChannelException) { // this can happen if we are starting/stopping an endpoint (and thus a response-manager) VERY quickly, and can be ignored