Fixed a big problem that was causing some random responses not to be de-serialized due to a mistake in the removal of entries in the request class map

This commit is contained in:
Nelson R. Perez 2018-06-14 22:16:34 -05:00
parent be33c91823
commit 7197ea4078

View file

@ -272,7 +272,7 @@ public class NetworkService extends Service {
Class requestClass = mRequestClassMap.get(response.id); Class requestClass = mRequestClassMap.get(response.id);
if(requestClass != null){ if(requestClass != null){
// Removing the class entry in the map // Removing the class entry in the map
mRequestClassMap.remove(mCurrentId); mRequestClassMap.remove(response.id);
// Obtaining the response payload class // Obtaining the response payload class
Class responsePayloadClass = mDeserializationMap.getReceivedClass(requestClass); Class responsePayloadClass = mDeserializationMap.getReceivedClass(requestClass);