File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
BDKSwiftExampleWallet/Extensions/BDK+Extensions Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -43,17 +43,6 @@ extension CbfClient {
43
43
}
44
44
}
45
45
46
- if log. contains ( " Established an encrypted connection " ) && !isConnected {
47
- isConnected = true
48
- await MainActor . run {
49
- NotificationCenter . default. post (
50
- name: NSNotification . Name ( " KyotoConnectionUpdate " ) ,
51
- object: nil ,
52
- userInfo: [ " connected " : true ]
53
- )
54
- }
55
- }
56
-
57
46
if log. contains ( " Need connections " ) && isConnected {
58
47
isConnected = false
59
48
await MainActor . run {
@@ -108,6 +97,17 @@ extension CbfClient {
108
97
userInfo: [ " connected " : true ]
109
98
)
110
99
}
100
+ case . successfulHandshake:
101
+ await MainActor . run {
102
+ if !hasEstablishedConnection {
103
+ hasEstablishedConnection = true
104
+ NotificationCenter . default. post (
105
+ name: NSNotification . Name ( " KyotoConnectionUpdate " ) ,
106
+ object: nil ,
107
+ userInfo: [ " connected " : true ]
108
+ )
109
+ }
110
+ }
111
111
default :
112
112
break
113
113
}
You can’t perform that action at this time.
0 commit comments