Skip to content
Open
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 @@ -563,6 +563,7 @@ public void onReceive(final Context context, final Intent intent)
if (isIdle)
{
log.info("idling detected, stopping service");
WalletApplication.scheduleStartBlockchainService(BlockchainServiceImpl.this);
stopSelf();
}
}
Expand Down Expand Up @@ -708,6 +709,7 @@ else if (BlockchainService.ACTION_RESET_BLOCKCHAIN.equals(action))
log.info("will remove blockchain on service shutdown");

resetBlockchainOnShutdown = true;
WalletApplication.scheduleStartBlockchainService(this);
stopSelf();
}
else if (BlockchainService.ACTION_BROADCAST_TRANSACTION.equals(action))
Expand All @@ -734,8 +736,6 @@ public void onDestroy()
{
log.debug(".onDestroy()");

WalletApplication.scheduleStartBlockchainService(this);

unregisterReceiver(tickReceiver);

application.getWallet().removeEventListener(walletEventListener);
Expand Down Expand Up @@ -792,6 +792,7 @@ public void onDestroy()
public void onLowMemory()
{
log.warn("low memory detected, stopping service");
WalletApplication.scheduleStartBlockchainService(this);
stopSelf();
}

Expand Down