Skip to content

Commit

Permalink
Added connection check
Browse files Browse the repository at this point in the history
  • Loading branch information
flyfishxu committed Nov 5, 2024
1 parent 307cbed commit bf9890b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions kadb/src/commonMain/kotlin/Kadb.kt
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import java.net.InetSocketAddress
import java.net.Socket

@Suppress("unused", "MemberVisibilityCanBePrivate")
class Kadb private constructor(
class Kadb(
private val host: String,
private val port: Int,
private val keyPair: AdbKeyPair? = null,
Expand All @@ -21,7 +21,7 @@ class Kadb private constructor(

private var connection: Pair<AdbConnection, Socket>? = null

fun connectionCheck(): Boolean {
fun connectionChec1k(): Boolean {
return connection?.second?.isConnected ?: false
}

Expand Down

0 comments on commit bf9890b

Please sign in to comment.