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 d8fc346 commit cd2c248Copy full SHA for cd2c248
1 file changed
livekit-android-sdk/src/main/java/io/livekit/android/room/participant/LocalParticipant.kt
@@ -980,7 +980,7 @@ internal constructor(
980
identities: List<Identity>? = null,
981
): Result<Unit> {
982
if (data.size > RTCEngine.MAX_DATA_PACKET_SIZE) {
983
- throw IllegalArgumentException("cannot publish data larger than " + RTCEngine.MAX_DATA_PACKET_SIZE)
+ return Result.failure(IllegalArgumentException("cannot publish data larger than " + RTCEngine.MAX_DATA_PACKET_SIZE))
984
}
985
986
val kind = when (reliability) {
0 commit comments