Fix warning for attribute error when deleting a client
@@ -1419,7 +1419,7 @@ class Client:
if timeout == no_default:
timeout = self._timeout * 2
# XXX handling of self.status here is not thread-safe
- if self.status == "closed":
+ if self.status in ["closed", "newly-created"]:
if self.asynchronous:
future = asyncio.Future()
future.set_result(None)
