Move message send until after configuration should be loaded
This commit is contained in:
parent
4c8935a16f
commit
639606a716
|
@ -65,7 +65,6 @@ class StatusModule extends ReactContextBaseJavaModule implements LifecycleEventL
|
||||||
if (status == null) {
|
if (status == null) {
|
||||||
status = new ServiceConnector(currentActivity, StatusService.class);
|
status = new ServiceConnector(currentActivity, StatusService.class);
|
||||||
status.registerHandler(this);
|
status.registerHandler(this);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
status.bindService();
|
status.bindService();
|
||||||
|
@ -220,6 +219,7 @@ class StatusModule extends ReactContextBaseJavaModule implements LifecycleEventL
|
||||||
String res = Statusgo.StartNode(config);
|
String res = Statusgo.StartNode(config);
|
||||||
Log.d(TAG, "StartNode result: " + res);
|
Log.d(TAG, "StartNode result: " + res);
|
||||||
Log.d(TAG, "Geth node started");
|
Log.d(TAG, "Geth node started");
|
||||||
|
status.sendMessage();
|
||||||
}
|
}
|
||||||
|
|
||||||
private String getOldExternalDir() {
|
private String getOldExternalDir() {
|
||||||
|
@ -305,7 +305,6 @@ class StatusModule extends ReactContextBaseJavaModule implements LifecycleEventL
|
||||||
@ReactMethod
|
@ReactMethod
|
||||||
public void startNode(final String config) {
|
public void startNode(final String config) {
|
||||||
Log.d(TAG, "startNode");
|
Log.d(TAG, "startNode");
|
||||||
status.sendMessage();
|
|
||||||
if (!checkAvailability()) {
|
if (!checkAvailability()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue