Skip to content

Commit

Permalink
Update MqttAndroidClient.kt
Browse files Browse the repository at this point in the history
setCallback fix
  • Loading branch information
protectedMan authored Jul 12, 2021
1 parent 2a7cad1 commit 760e640
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -817,6 +817,7 @@ class MqttAndroidClient(val context: Context, private val serverURI: String, pri
* @see MqttCallback
*/
override fun setCallback(callback: MqttCallback) {
callbacksList.clear()
callbacksList.add(callback)
}

Expand Down

0 comments on commit 760e640

Please sign in to comment.