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.