Skip to content

Commit 807dcb2

Browse files
committed
-
1 parent d468597 commit 807dcb2

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

chadtree/client.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
wrap_future,
1212
)
1313
from concurrent.futures import Future, ThreadPoolExecutor
14-
from contextlib import AbstractAsyncContextManager, suppress
14+
from contextlib import AbstractAsyncContextManager
1515
from dataclasses import replace
1616
from functools import wraps
1717
from logging import DEBUG as DEBUG_LVL
@@ -194,14 +194,11 @@ async def cont() -> None:
194194
if attempt == RENDER_RETRIES:
195195
log.warning("%s", e)
196196
else:
197-
next_state = replace(
197+
state_ref.val = replace(
198198
state, node_row_lookup=derived.node_row_lookup
199199
)
200200
break
201-
else:
202-
next_state = state
203201

204-
state_ref.val = next_state
205202

206203
if settings.profiling and not has_drawn:
207204
has_drawn = True

0 commit comments

Comments
 (0)