Fix issue where multiple requests could not be run simultaneously

This commit is contained in:
Rohit Awate 2018-08-11 19:13:11 +05:30
parent f735667d42
commit 6825b135ec
No known key found for this signature in database
GPG key ID: 1051D7B79CF2EE25

View file

@ -213,11 +213,6 @@ public class DashboardController implements Initializable {
requestManager.reset(); requestManager.reset();
} }
if (responseBox.getChildren().size() == 2) {
responseBox.getChildren().remove(0);
responseArea.clear();
}
try { try {
String address = addressField.getText().trim(); String address = addressField.getText().trim();
@ -709,6 +704,7 @@ public class DashboardController implements Initializable {
break; break;
case LOADING: case LOADING:
dashboardState.handOverRequest(requestManager); dashboardState.handOverRequest(requestManager);
requestManager = null;
break; break;
} }