Skip to content

Commit

Permalink
- fix crash when connect fails
Browse files Browse the repository at this point in the history
  • Loading branch information
rodvar committed Dec 10, 2024
1 parent 0d65a0f commit e1a24d3
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 8 deletions.
4 changes: 2 additions & 2 deletions iosClient/Podfile.lock
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
PODS:
- domain (0.0.9)
- domain (0.0.11)
- presentation (0.0.9)

DEPENDENCIES:
Expand All @@ -13,7 +13,7 @@ EXTERNAL SOURCES:
:path: "../shared/presentation"

SPEC CHECKSUMS:
domain: feb764d7802f6a414d3f649e95721d16a38d018e
domain: 7b60b3f5ced94f5e4004f4239c7534bb7e8d0297
presentation: 8c21a3748676af08d28227a02cad92c9a7eeb27a

PODFILE CHECKSUM: 431d52ef58584308462794999ebead56142b0160
Expand Down
2 changes: 1 addition & 1 deletion iosClient/Pods/Local Podspecs/domain.podspec.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions iosClient/Pods/Manifest.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion shared/domain/domain.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = 'domain'
spec.version = '0.0.9'
spec.version = '0.0.11'
spec.homepage = 'X'
spec.source = { :http=> ''}
spec.authors = ''
Expand Down
2 changes: 1 addition & 1 deletion shared/presentation/presentation.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = 'presentation'
spec.version = '0.0.9'
spec.version = '0.0.11'
spec.homepage = 'X'
spec.source = { :http=> ''}
spec.authors = ''
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,17 @@ class ClientMainPresenter(
override fun onViewAttached() {
super.onViewAttached()
runCatching {
backgroundScope.launch { webSocketClient.connect() }
backgroundScope.launch {
runCatching {
webSocketClient.connect()
}.onSuccess {
log.d { "Connected to trusted node" }
}.onFailure {
// TODO give user feedback (we could have a general error screen covering usual
// issues like connection issues and potential solutions)
log.e { "ERROR: FAILED to connect to trusted node - details above" }
}
}

applicationBootstrapFacade.activate()
offerbookServiceFacade.activate()
Expand Down

0 comments on commit e1a24d3

Please sign in to comment.