@@ -161,6 +161,10 @@ void dispatchAirplaneModeChange(boolean airplaneMode) {
161
161
}
162
162
163
163
void performSubmit (Action action ) {
164
+ performSubmit (action , true );
165
+ }
166
+
167
+ void performSubmit (Action action , boolean dismissFailed ) {
164
168
if (pausedTags .contains (action .getTag ())) {
165
169
pausedActions .put (action .getTarget (), action );
166
170
if (action .getPicasso ().loggingEnabled ) {
@@ -186,7 +190,9 @@ void performSubmit(Action action) {
186
190
hunter = forRequest (action .getPicasso (), this , cache , stats , action );
187
191
hunter .future = service .submit (hunter );
188
192
hunterMap .put (action .getKey (), hunter );
189
- failedActions .remove (action .getTarget ());
193
+ if (dismissFailed ) {
194
+ failedActions .remove (action .getTarget ());
195
+ }
190
196
191
197
if (action .getPicasso ().loggingEnabled ) {
192
198
log (OWNER_DISPATCHER , VERB_ENQUEUED , action .request .logId ());
@@ -394,7 +400,7 @@ private void flushFailedActions() {
394
400
if (action .getPicasso ().loggingEnabled ) {
395
401
log (OWNER_DISPATCHER , VERB_REPLAYING , action .getRequest ().logId ());
396
402
}
397
- performSubmit (action );
403
+ performSubmit (action , false );
398
404
}
399
405
}
400
406
}
0 commit comments