Change telebot polling thread to daemon. fix #2
This commit is contained in:
parent
a62139fafc
commit
cc4ff12103
|
@ -83,6 +83,7 @@ class TeleBot:
|
|||
time.sleep(interval + 1)
|
||||
self.__stop_polling = False
|
||||
self.polling_thread = threading.Thread(target=self.__polling, args=())
|
||||
self.polling_thread.daemon = True
|
||||
self.polling_thread.start()
|
||||
|
||||
def __polling(self):
|
||||
|
|
Loading…
Reference in New Issue