Skip to content

Commit

Permalink
fix: revert _true_controller (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
BobTheBuidler committed Apr 30, 2024
1 parent 58f7f14 commit e6104b7
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions dank_mids/_requests.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e6104b7

Please sign in to comment.