don't start 2t stuff if there's no backend avail

This commit is contained in:
ed 2021-04-19 13:17:34 +02:00
parent 16d6e9be1f
commit f8c11faada

View file

@ -101,17 +101,18 @@ class Up2k(object):
thr.daemon = True thr.daemon = True
thr.start() thr.start()
thr = threading.Thread(target=self._tagger)
thr.daemon = True
thr.start()
thr = threading.Thread(target=self._hasher) thr = threading.Thread(target=self._hasher)
thr.daemon = True thr.daemon = True
thr.start() thr.start()
thr = threading.Thread(target=self._run_all_mtp) if self.mtag:
thr.daemon = True thr = threading.Thread(target=self._tagger)
thr.start() thr.daemon = True
thr.start()
thr = threading.Thread(target=self._run_all_mtp)
thr.daemon = True
thr.start()
def log(self, msg, c=0): def log(self, msg, c=0):
self.log_func("up2k", msg + "\033[K", c) self.log_func("up2k", msg + "\033[K", c)