We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e5a7da8 commit 4e81cb2Copy full SHA for 4e81cb2
1 file changed
watch/app/src/main/java/com/imsproject/watch/model/MainModel.kt
@@ -117,7 +117,6 @@ class MainModel (private val scope : CoroutineScope) {
117
Log.e(TAG, "connectToServer: WebSocket connection timeout")
118
return false // timeout
119
}
120
-
121
startListeners()
122
startHeartBeat()
123
@@ -599,10 +598,11 @@ class MainModel (private val scope : CoroutineScope) {
599
598
private set
600
601
602
- private fun WebSocketClient.reset() {
+ private fun org.java_websocket.client.WebSocketClient.reset() {
603
this::class.java.superclass.getDeclaredMethod("reset").apply{
604
isAccessible = true
605
- invoke(this)
+ invoke(this@reset)
606
607
+
608
0 commit comments