Quantcast

Stop watching for addons loading once WeightsWatcher has been loaded

Kevin Lyles [02-26-11 - 18:47]
Stop watching for addons loading once WeightsWatcher has been loaded
Filename
WeightsWatcher.xml
diff --git a/WeightsWatcher.xml b/WeightsWatcher.xml
index d590208..a69305c 100644
--- a/WeightsWatcher.xml
+++ b/WeightsWatcher.xml
@@ -8,6 +8,7 @@
 			<OnEvent>
 				if event == "ADDON_LOADED" and ... == "WeightsWatcher" then
 					self:OnInitialize()
+					self:UnregisterEvent("ADDON_LOADED")
 				end
 			</OnEvent>
 		</Scripts>