Skip to content

Commit 4e81cb2

Browse files
committed
small fix
1 parent e5a7da8 commit 4e81cb2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

  • watch/app/src/main/java/com/imsproject/watch/model

watch/app/src/main/java/com/imsproject/watch/model/MainModel.kt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,6 @@ class MainModel (private val scope : CoroutineScope) {
117117
Log.e(TAG, "connectToServer: WebSocket connection timeout")
118118
return false // timeout
119119
}
120-
121120
startListeners()
122121
startHeartBeat()
123122
}
@@ -599,10 +598,11 @@ class MainModel (private val scope : CoroutineScope) {
599598
private set
600599
}
601600

602-
private fun WebSocketClient.reset() {
601+
private fun org.java_websocket.client.WebSocketClient.reset() {
603602
this::class.java.superclass.getDeclaredMethod("reset").apply{
604603
isAccessible = true
605-
invoke(this)
604+
invoke(this@reset)
606605
}
607606
}
607+
608608
}

0 commit comments

Comments
 (0)