Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android: update scheduled sync worker #2347

Merged
merged 2 commits into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,10 @@ public void handleMessage(Message msg) {
// Hyperlog.i(TAG, "Got WalletState.RPC_ACTIVE");
// Hyperlog.i(TAG, "LndMobileService reports RPC server ready. Sending GetInfo request");
getInfoRequest();
} else if (currentState == lnrpc.Stateservice.WalletState.SERVER_ACTIVE) {
} else if (
currentState == lnrpc.Stateservice.WalletState.SERVER_ACTIVE ||
currentState == lnrpc.Stateservice.WalletState.WAITING_TO_START
) {
// Hyperlog.i(TAG, "Got WalletState.SERVER_ACTIVE");
// Hyperlog.i(TAG, "We do not care about that.");
} else {
Expand Down
6 changes: 3 additions & 3 deletions android/app/src/main/java/com/zeus/LndMobileService.java
Original file line number Diff line number Diff line change
Expand Up @@ -548,9 +548,9 @@ public IBinder onBind(Intent intent) {
@Override
public boolean onUnbind(Intent intent) {
if (mClients.isEmpty()) {
if (checkLndProcessExists()) {
stopLnd(null, -1);
}
// HyperLog.i(TAG, "Last client unbound. Stopping lnd.");
stopLnd(null, -1);
stopSelf();
}

return false;
Expand Down
Loading