Change telebot polling thread to daemon. fix #2

This commit is contained in:
eternnoir 2015-06-27 10:03:02 +08:00
parent a62139fafc
commit cc4ff12103
1 changed files with 1 additions and 0 deletions

View File

@ -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):