From ca8f28a8a970aaea70ec38a515d2bad55e2d1786 Mon Sep 17 00:00:00 2001 From: Anonomit Date: Thu, 3 Oct 2024 17:19:59 -0400 Subject: [PATCH] Fix error when cancelling an incomplete cache operation --- ItemCache.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ItemCache.lua b/ItemCache.lua index df2a62f..608c5a8 100644 --- a/ItemCache.lua +++ b/ItemCache.lua @@ -347,7 +347,7 @@ function CallbackController:Resume() return self end function CallbackController:Cancel() - if not self:IsComplete() and not self.cancelled then + if not self:IsComplete() and not private(self).cancelled then private(self).cancelled = true ItemDB:UnregisterCallbackController(self) end