Loading android/pandora/server/src/com/android/pandora/Host.kt +1 −2 Original line number Diff line number Diff line Loading @@ -49,7 +49,6 @@ import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.awaitCancellation import kotlinx.coroutines.cancel import kotlinx.coroutines.channels.awaitClose import kotlinx.coroutines.channels.sendBlocking import kotlinx.coroutines.channels.trySendBlocking import kotlinx.coroutines.delay import kotlinx.coroutines.flow.Flow Loading Loading @@ -567,7 +566,7 @@ class Host(private val context: Context, private val server: Server) : HostImplB val callback = object : ScanCallback() { override fun onScanResult(callbackType: Int, result: ScanResult) { sendBlocking( trySendBlocking( RunDiscoveryResponse.newBuilder() .setDevice( Device.newBuilder() Loading android/pandora/server/src/com/android/pandora/Utils.kt +1 −1 Original line number Diff line number Diff line Loading @@ -179,7 +179,7 @@ fun <T, U> grpcBidirectionalStream( override fun onNext(req: T) { // Note: this should be made a blocking call, and the handler should run in a separate thread // so we get flow control - but for now we can live with this if (!inputChannel.offer(req)) { if (inputChannel.trySend(req).isFailure) { job.cancel(CancellationException("too many incoming requests, buffer exceeded")) responseObserver.onError( CancellationException("too many incoming requests, buffer exceeded") Loading Loading
android/pandora/server/src/com/android/pandora/Host.kt +1 −2 Original line number Diff line number Diff line Loading @@ -49,7 +49,6 @@ import kotlinx.coroutines.Dispatchers import kotlinx.coroutines.awaitCancellation import kotlinx.coroutines.cancel import kotlinx.coroutines.channels.awaitClose import kotlinx.coroutines.channels.sendBlocking import kotlinx.coroutines.channels.trySendBlocking import kotlinx.coroutines.delay import kotlinx.coroutines.flow.Flow Loading Loading @@ -567,7 +566,7 @@ class Host(private val context: Context, private val server: Server) : HostImplB val callback = object : ScanCallback() { override fun onScanResult(callbackType: Int, result: ScanResult) { sendBlocking( trySendBlocking( RunDiscoveryResponse.newBuilder() .setDevice( Device.newBuilder() Loading
android/pandora/server/src/com/android/pandora/Utils.kt +1 −1 Original line number Diff line number Diff line Loading @@ -179,7 +179,7 @@ fun <T, U> grpcBidirectionalStream( override fun onNext(req: T) { // Note: this should be made a blocking call, and the handler should run in a separate thread // so we get flow control - but for now we can live with this if (!inputChannel.offer(req)) { if (inputChannel.trySend(req).isFailure) { job.cancel(CancellationException("too many incoming requests, buffer exceeded")) responseObserver.onError( CancellationException("too many incoming requests, buffer exceeded") Loading