From 1c261746a2c31bd65d2b7f7e847e7095098085a8 Mon Sep 17 00:00:00 2001 From: "Nelson R. Perez" Date: Mon, 31 Dec 2018 13:34:10 -0500 Subject: [PATCH] Clearing the map between request id and the ApiCallable class because when we disconnect from one node, all previous message ids should be reset --- .../java/cy/agorise/graphenej/api/android/NetworkService.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/graphenej/src/main/java/cy/agorise/graphenej/api/android/NetworkService.java b/graphenej/src/main/java/cy/agorise/graphenej/api/android/NetworkService.java index c455688..1467516 100644 --- a/graphenej/src/main/java/cy/agorise/graphenej/api/android/NetworkService.java +++ b/graphenej/src/main/java/cy/agorise/graphenej/api/android/NetworkService.java @@ -699,6 +699,9 @@ public class NetworkService extends Service { isLoggedIn = false; + // Clearing previous request id to class mappings + mRequestClassMap.clear(); + if(mSelectedNode != null){ // Marking the selected node as not connected mSelectedNode.setConnected(false);