From 639606a71606a2b4305450f8c2f71c0c019648db Mon Sep 17 00:00:00 2001 From: angusiguess Date: Thu, 5 Oct 2017 11:15:56 -0300 Subject: [PATCH] Move message send until after configuration should be loaded --- .../src/main/java/im/status/ethereum/module/StatusModule.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/modules/react-native-status/android/src/main/java/im/status/ethereum/module/StatusModule.java b/modules/react-native-status/android/src/main/java/im/status/ethereum/module/StatusModule.java index 46e29997a7..f0ff468f06 100644 --- a/modules/react-native-status/android/src/main/java/im/status/ethereum/module/StatusModule.java +++ b/modules/react-native-status/android/src/main/java/im/status/ethereum/module/StatusModule.java @@ -65,7 +65,6 @@ class StatusModule extends ReactContextBaseJavaModule implements LifecycleEventL if (status == null) { status = new ServiceConnector(currentActivity, StatusService.class); status.registerHandler(this); - } status.bindService(); @@ -220,6 +219,7 @@ class StatusModule extends ReactContextBaseJavaModule implements LifecycleEventL String res = Statusgo.StartNode(config); Log.d(TAG, "StartNode result: " + res); Log.d(TAG, "Geth node started"); + status.sendMessage(); } private String getOldExternalDir() { @@ -305,7 +305,6 @@ class StatusModule extends ReactContextBaseJavaModule implements LifecycleEventL @ReactMethod public void startNode(final String config) { Log.d(TAG, "startNode"); - status.sendMessage(); if (!checkAvailability()) { return; }