From d3e57d45a846ad93f17e494d1e1586d9e6ce8a16 Mon Sep 17 00:00:00 2001
From: Drake Arconis <drake@alchemyviewer.org>
Date: Tue, 28 Oct 2014 15:37:37 -0400
Subject: [PATCH] changed: Delete inventory idle callback when fetching is done

---
 indra/newview/llinventorymodelbackgroundfetch.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/indra/newview/llinventorymodelbackgroundfetch.cpp b/indra/newview/llinventorymodelbackgroundfetch.cpp
index f18832fe95..b7ea41c3e2 100755
--- a/indra/newview/llinventorymodelbackgroundfetch.cpp
+++ b/indra/newview/llinventorymodelbackgroundfetch.cpp
@@ -338,6 +338,7 @@ void LLInventoryModelBackgroundFetch::setAllFoldersFetched()
 	}
 	mFolderFetchActive = false;
 	mBackgroundFetchActive = false;
+	gIdleCallbacks.deleteFunction(&LLInventoryModelBackgroundFetch::backgroundFetchCB, this);
 	LL_INFOS(LOG_INV) << "Inventory background fetch completed" << LL_ENDL;
 }
 
-- 
GitLab