diff --git a/apns2/client.py b/apns2/client.py index baacd61..ecb20e6 100644 --- a/apns2/client.py +++ b/apns2/client.py @@ -84,7 +84,7 @@ def watchdog() -> None: time.sleep(heartbeat_period) thread = Thread(target=watchdog) - thread.setDaemon(True) + thread.daemon = True thread.start() def send_notification(self, token_hex: str, notification: Payload, topic: Optional[str] = None,