From c286c4f9dbf1496518906f4503cdef58ee744f5b Mon Sep 17 00:00:00 2001 From: Cai Yuanqing Date: Mon, 25 Sep 2017 11:52:07 +1300 Subject: [PATCH] Avoid to start the queue again to interrupt started thread HSHelpStack use newRequestQueue of com.android.volley.toolbox.Volley to init Request queue, in which has already start the dispather, so in HSHappyfoxGear it's unnecessary to start queue again, it will interrupt the first request task when it's already started. --- helpstack/src/com/tenmiles/helpstack/gears/HSHappyfoxGear.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/helpstack/src/com/tenmiles/helpstack/gears/HSHappyfoxGear.java b/helpstack/src/com/tenmiles/helpstack/gears/HSHappyfoxGear.java index ccd779f..a7a34aa 100644 --- a/helpstack/src/com/tenmiles/helpstack/gears/HSHappyfoxGear.java +++ b/helpstack/src/com/tenmiles/helpstack/gears/HSHappyfoxGear.java @@ -128,7 +128,6 @@ public void onResponse(JSONArray sectionsArray) { request.setTag(cancelTag); queue.add(request); - queue.start(); } else { // Fetch individual section @@ -153,7 +152,6 @@ public void onResponse(JSONObject sectionsArray) { request.setTag(cancelTag); queue.add(request); - queue.start(); } }