Difficult-Rocket/Difficult_Rocket/api/thread.py

24 lines
470 B
Python
Raw Normal View History

2021-09-08 23:38:34 +08:00
# -------------------------------
# Difficult Rocket
2021-12-26 23:06:03 +08:00
# Copyright © 2021-2022 by shenjackyuanjie
2021-09-08 23:38:34 +08:00
# All rights reserved
# -------------------------------
"""
writen by shenjackyuanjie
mail: 3695888@qq.com
github: @shenjackyuanjie
gitee: @shenjackyuanjie
"""
import threading
from Difficult_Rocket import crash
class Threads(threading.Thread):
def run(self):
2021-09-08 23:38:34 +08:00
if crash.record_thread:
2021-09-09 23:54:03 +08:00
crash.all_thread.append(self)
super().run()