Skip to content

Commit 557784a

Browse files
committed
fix(Session.attach): Remove refresh() call that fails after session killed
why: attach-session is a blocking interactive command where session state can change arbitrarily during attachment, including being killed entirely. Calling refresh() after such a command is semantically incorrect. what: - Remove self.refresh() call from Session.attach() Fixes: tmux-python/tmuxp#1002
1 parent 3415a70 commit 557784a

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/libtmux/session.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,8 +329,6 @@ def attach(
329329
if proc.stderr:
330330
raise exc.LibTmuxException(proc.stderr)
331331

332-
self.refresh()
333-
334332
return self
335333

336334
def kill(

0 commit comments

Comments
 (0)