Skip to content

Commit a61a76c

Browse files
committed
#100: handle tmux 2.0 socket connection failure (when session doesn't exist)
1 parent eaa75fb commit a61a76c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tmuxp/server.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,8 @@ def has_session(self, target_session):
318318

319319
if 'failed to connect to server' in proc.stdout:
320320
return False
321+
elif 'no server running' in proc.stdout: # tmux 2.0
322+
return False
321323
elif 'session not found' in proc.stdout:
322324
return False
323325
else:

0 commit comments

Comments
 (0)