Threads creation optimization
This commit is contained in:
@ -12,16 +12,12 @@ from settings import settings
|
||||
|
||||
class InactivityWatchdog(Thread):
|
||||
def __init__(
|
||||
self,
|
||||
players: PlayerList,
|
||||
ws_server: Optional[SendGameDumpInterface] = None,
|
||||
*args,
|
||||
**kwargs,
|
||||
self, players: PlayerList, ws_server: Optional[SendGameDumpInterface] = None
|
||||
) -> None:
|
||||
self.players = players
|
||||
self.ws_server = ws_server
|
||||
self.stopped = False
|
||||
super().__init__(*args, **kwargs)
|
||||
super().__init__(daemon=True)
|
||||
|
||||
def run(self) -> None:
|
||||
logging.info("Starting inactivity watchdog")
|
||||
|
||||
Reference in New Issue
Block a user