From 8329108c4762aaf084b013283bf4084fbe699d9b Mon Sep 17 00:00:00 2001 From: adbenitez Date: Thu, 26 Oct 2023 23:34:32 +0200 Subject: [PATCH] re-use get_async_rpc() --- deltachat-rpc-client/src/deltachat_rpc_client/rpc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deltachat-rpc-client/src/deltachat_rpc_client/rpc.py b/deltachat-rpc-client/src/deltachat_rpc_client/rpc.py index 5abc0be93..caeca3f4d 100644 --- a/deltachat-rpc-client/src/deltachat_rpc_client/rpc.py +++ b/deltachat-rpc-client/src/deltachat_rpc_client/rpc.py @@ -91,7 +91,7 @@ class Rpc: async def __aenter__(self): self.__enter__() - return AsyncRpc(self) + return self.get_async_rpc() async def __aexit__(self, _exc_type, _exc, _tb): self.__exit__(_exc_type, _exc, _tb)