diff --git a/aprsd/threads/aprsd.py b/aprsd/threads/aprsd.py index 9176bd7..a7415c7 100644 --- a/aprsd/threads/aprsd.py +++ b/aprsd/threads/aprsd.py @@ -88,6 +88,13 @@ class APRSDThreadList: cls.threads_list = [] return cls._instance + def __contains__(self, name): + """See if we have a thread in our list""" + for t in self.threads_list: + if t.name == name: + return True + return False + def stats(self, serializable=False) -> dict: stats = {} for th in self.threads_list: