Skip to content

Commit 531cc7b

Browse files
committed
Stop any service when delete a wallet
1 parent 2a109a3 commit 531cc7b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

BDKSwiftExampleWallet/Service/BDKSyncService/BDKSyncService.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,9 @@ extension BDKSyncService {
155155
}
156156

157157
func deleteWallet() throws {
158+
Task {
159+
try await stopService()
160+
}
158161
try deleteData()
159162
}
160163

0 commit comments

Comments
 (0)