def run(self):
        if not have_bonjour:
            logging.warn("Cannot run bonjour server!  Maybe some packages need to be installed?")
            return
        
        sdRef = pybonjour.DNSServiceRegister(name = self.name,
                                             regtype = self.regtype,
                                             port = self.port,
                                             callBack = self.register_callback)
        try:
            try:
                while True:
                    ready = select.select([sdRef], [], [])
                    if ready[0] in sdRef:
                        pybonjour.DNSServiceProcessResult(sdRef)
            except KeyboardInterrupt:
                pass
        finally:
            sdRef.close()


#-------------------------------------------------
dataset/ETHPy150Open beville/ComicStreamer/comicstreamerlib/bonjour.py/BonjourThread.run/swapped operands of `in`