attempt to fix issue #393
This commit is contained in:
parent
38b8fed945
commit
52b9612098
|
@ -99,6 +99,7 @@ public class StatusService extends Service {
|
||||||
|
|
||||||
private boolean handleMessage(Message message) {
|
private boolean handleMessage(Message message) {
|
||||||
Log.d(TAG, "Received service message." + message.toString());
|
Log.d(TAG, "Received service message." + message.toString());
|
||||||
|
doStartNode();
|
||||||
switch (message.what) {
|
switch (message.what) {
|
||||||
|
|
||||||
case StatusMessages.MSG_START_NODE:
|
case StatusMessages.MSG_START_NODE:
|
||||||
|
@ -148,9 +149,7 @@ public class StatusService extends Service {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void startNode(Message message) {
|
public void doStartNode() {
|
||||||
|
|
||||||
applicationMessenger = message.replyTo;
|
|
||||||
if (!isNodeInitialized) {
|
if (!isNodeInitialized) {
|
||||||
|
|
||||||
File extStore = Environment.getExternalStorageDirectory();
|
File extStore = Environment.getExternalStorageDirectory();
|
||||||
|
@ -176,6 +175,11 @@ public class StatusService extends Service {
|
||||||
Statusgo.AddPeer("enode://3b020a1fd6ab980a5670975e8a7361af1732fa3fa1819b751a94b6a4265e8c52b02c608c0de1347784b834b298280b018bcf6547f47bbba63612cba0e4707ec1@139.59.212.114:30303");
|
Statusgo.AddPeer("enode://3b020a1fd6ab980a5670975e8a7361af1732fa3fa1819b751a94b6a4265e8c52b02c608c0de1347784b834b298280b018bcf6547f47bbba63612cba0e4707ec1@139.59.212.114:30303");
|
||||||
isNodeInitialized = true;
|
isNodeInitialized = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
private void startNode(Message message) {
|
||||||
|
applicationMessenger = message.replyTo;
|
||||||
|
doStartNode();
|
||||||
createAndSendReply(message, StatusMessages.MSG_START_NODE, null);
|
createAndSendReply(message, StatusMessages.MSG_START_NODE, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue