bugfix: cancel image request when reset

This commit is contained in:
王劲鹏 2022-06-20 18:53:04 +08:00 committed by osborn
parent 4cfb7b4076
commit f6254304e0

View File

@ -767,6 +767,12 @@ - (void)reset {
#endif
self.animationEndCallbackId = nil;
}
#if DORIC_USE_YYWEBIMAGE
[self.view yy_cancelCurrentImageRequest];
#elif DORIC_USE_SDWEBIMAGE
[self.view sd_cancelCurrentImageLoad];
#endif
}
- (BOOL)needReload {