mirror of
https://github.com/status-im/keycard-connect.git
synced 2025-01-25 02:09:04 +00:00
kill existing (if any) connection before creating a new one
This commit is contained in:
parent
fc451c142f
commit
24abd90bc4
@ -50,8 +50,9 @@ class SessionManager : ExportKeyCommand.Listener {
|
||||
}
|
||||
|
||||
fun connect(uri: String) {
|
||||
|
||||
scope.launch {
|
||||
session?.kill()
|
||||
|
||||
session = WCSession(
|
||||
fromWCUri(uri),
|
||||
MoshiPayloadAdapter(moshi),
|
||||
|
Loading…
x
Reference in New Issue
Block a user