From e6104b71af3bd6330c1621237c2feab4722f564f Mon Sep 17 00:00:00 2001 From: BobTheBuidler <70677534+BobTheBuidler@users.noreply.github.com> Date: Tue, 30 Apr 2024 16:24:02 -0400 Subject: [PATCH] fix: revert _true_controller (#196) --- dank_mids/_requests.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/dank_mids/_requests.py b/dank_mids/_requests.py index 79f1250d..979d869b 100644 --- a/dank_mids/_requests.py +++ b/dank_mids/_requests.py @@ -847,9 +847,7 @@ def adjust_batch_size(self) -> None: def _post_future_cleanup(self) -> None: with self.controller.pools_closed_lock: - # a hacky way to get the real controller obj from the weak reference proxy - controller = self.controller.__repr__.__self__ - self.controller.pending_rpc_calls = JSONRPCBatch(controller) + self.controller.pending_rpc_calls = JSONRPCBatch(self.controller) def _log_exception(e: Exception) -> bool: # NOTE: These errors are expected during normal use and are not indicative of any problem(s). No need to log them.