upgrade status-go & always call start/stop methods
Signed-off-by: Andrea Maria Piana <andrea.maria.piana@gmail.com>
This commit is contained in:
parent
d5fc93aa55
commit
e52f9fa43f
|
@ -623,16 +623,9 @@
|
|||
(fx/defn restart-wallet-service
|
||||
[{:keys [db] :as cofx}]
|
||||
(when (:multiaccount db)
|
||||
(let [state (:wallet-service/state db)
|
||||
syncing-allowed? (mobile-network-utils/syncing-allowed? cofx)]
|
||||
(let [syncing-allowed? (mobile-network-utils/syncing-allowed? cofx)]
|
||||
(log/info "restart-wallet-service"
|
||||
"syncing-allowed" syncing-allowed?
|
||||
"state" state)
|
||||
(cond
|
||||
(and (not syncing-allowed?)
|
||||
(not= state :stopped))
|
||||
(stop-wallet cofx)
|
||||
|
||||
(and syncing-allowed?
|
||||
(not= state :started))
|
||||
(start-wallet cofx)))))
|
||||
"syncing-allowed" syncing-allowed?)
|
||||
(if syncing-allowed?
|
||||
(start-wallet cofx)
|
||||
(stop-wallet cofx)))))
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"_comment": "DO NOT EDIT THIS FILE BY HAND. USE 'scripts/update-status-go.sh <tag>' instead",
|
||||
"owner": "status-im",
|
||||
"repo": "status-go",
|
||||
"version": "stop-wallet",
|
||||
"commit-sha1": "08d4f2e422ca3de0b639022baf840bebdb5bd67b",
|
||||
"src-sha256": "1k16fhr6hrmxv47jpwhlj164blf20sq96gba4378vmpzhakqk266"
|
||||
"version": "v0.56.9",
|
||||
"commit-sha1": "435eacecb587571887ef547d78f82d67f026db28",
|
||||
"src-sha256": "0nk4fn7avj5yqsbvc3yjb2hdfhswxsvyvmxcgf0g3rr9rdhm7m19"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue