You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: androidNode/src/androidMain/kotlin/network/bisq/mobile/android/node/service/network/NodeConnectivityService.kt
+8-3Lines changed: 8 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -31,8 +31,13 @@ class NodeConnectivityService(private val applicationService: AndroidApplication
31
31
}
32
32
33
33
privatefuncurrentConnections(): Int {
34
-
return applicationService.networkService.get()
35
-
.serviceNodesByTransport.allServiceNodes
36
-
.sumOf { it.defaultNode?.numConnections ?:0 }
34
+
try {
35
+
return applicationService.networkService.get()
36
+
.serviceNodesByTransport.allServiceNodes
37
+
.sumOf { it.defaultNode?.numConnections ?:0 }
38
+
} catch (e:Exception) {
39
+
log.e(e) { "Failed to check current connections, assuming none: ${e.message}" }
Copy file name to clipboardExpand all lines: androidNode/src/androidMain/kotlin/network/bisq/mobile/android/node/service/settings/NodeSettingsServiceFacade.kt
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -150,6 +150,10 @@ class NodeSettingsServiceFacade(applicationService: AndroidApplicationService.Pr
0 commit comments