Clearing the map between request id and the ApiCallable class because when we disconnect from one node, all previous message ids should be reset

This commit is contained in:
Nelson R. Perez 2018-12-31 13:34:10 -05:00
parent cc28f55dd5
commit 1c261746a2

View file

@ -699,6 +699,9 @@ public class NetworkService extends Service {
isLoggedIn = false; isLoggedIn = false;
// Clearing previous request id to class mappings
mRequestClassMap.clear();
if(mSelectedNode != null){ if(mSelectedNode != null){
// Marking the selected node as not connected // Marking the selected node as not connected
mSelectedNode.setConnected(false); mSelectedNode.setConnected(false);