Skip to content

Commit 830cc71

Browse files
scottymackdsrees
authored andcommitted
NoClassDefFoundError fix (#21)
On pre API 24 devices, it crashes with NoClassDefFoundError
1 parent db1769f commit 830cc71

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main/kotlin/org/phoenixframework/PhxSocket.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ open class PhxSocket(
120120
// If there are query params, append them now
121121
params?.let {
122122
val httpBuilder = httpUrl.newBuilder()
123-
it.forEach { key, value ->
123+
it.forEach { (key, value) ->
124124
httpBuilder.addQueryParameter(key, value.toString())
125125
}
126126

@@ -442,4 +442,4 @@ open class PhxSocket(
442442
override fun onFailure(webSocket: WebSocket?, t: Throwable, response: Response?) {
443443
this.onConnectionError(t, response)
444444
}
445-
}
445+
}

0 commit comments

Comments
 (0)