diff --git a/chadtree/client.py b/chadtree/client.py index 12c5ed381..ff4417274 100644 --- a/chadtree/client.py +++ b/chadtree/client.py @@ -11,7 +11,7 @@ wrap_future, ) from concurrent.futures import Future, ThreadPoolExecutor -from contextlib import AbstractAsyncContextManager, suppress +from contextlib import AbstractAsyncContextManager from dataclasses import replace from functools import wraps from logging import DEBUG as DEBUG_LVL @@ -194,14 +194,11 @@ async def cont() -> None: if attempt == RENDER_RETRIES: log.warning("%s", e) else: - next_state = replace( + state_ref.val = replace( state, node_row_lookup=derived.node_row_lookup ) break - else: - next_state = state - state_ref.val = next_state if settings.profiling and not has_drawn: has_drawn = True