def METHOD_NAME(self):
    q = self.queue
    while not self.quit:
        depths = freenect.sync_get_depth(index=self.index)
        if depths is None:
            sleep(2)
            continue
        q.appendleft(depths)