From f6254304e04fa0335028d86cbc2f720f655bdd20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E5=8A=B2=E9=B9=8F?= Date: Mon, 20 Jun 2022 18:53:04 +0800 Subject: [PATCH] bugfix: cancel image request when reset --- doric-iOS/Pod/Classes/Shader/DoricImageNode.m | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/doric-iOS/Pod/Classes/Shader/DoricImageNode.m b/doric-iOS/Pod/Classes/Shader/DoricImageNode.m index 2b2489df..8c72965c 100644 --- a/doric-iOS/Pod/Classes/Shader/DoricImageNode.m +++ b/doric-iOS/Pod/Classes/Shader/DoricImageNode.m @@ -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 {