From 6049c9837c8b8966119f84069c18f3df33cc8c1b Mon Sep 17 00:00:00 2001 From: blitzman Date: Sat, 28 Jan 2017 23:35:42 -0500 Subject: [PATCH] Remove prefetch thread (unneeded and consumes resources?) --- service/prefetch.py | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/service/prefetch.py b/service/prefetch.py index 98ac622b3..a3efb38e2 100644 --- a/service/prefetch.py +++ b/service/prefetch.py @@ -28,25 +28,6 @@ import logging logger = logging.getLogger(__name__) - -class PrefetchThread(threading.Thread): - def __init__(self): - threading.Thread.__init__(self) - self.name = "Prefetch" - - def run(self): - # We're a daemon thread, as such, interpreter might get shut down while we do stuff - # Make sure we don't throw tracebacks to console - try: - eos.types.Character.setSkillList(eos.db.getItemsByCategory("Skill", eager=("effects", "attributes", "attributes.info.icon", "attributes.info.unit", "icon"))) - except: - pass - -prefetch = PrefetchThread() -prefetch.daemon = True - -prefetch.start() - ######## # The following code does not belong here, however until we rebuild skeletons # to include modified pyfa.py, this is the best place to put it. See GH issue