Skip to content

Commit 03b88fd

Browse files
committed
Reorder checks in has_session by version
1 parent 1a6274b commit 03b88fd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tmuxp/server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,9 @@ def has_session(self, target_session):
325325
return False
326326
elif 'no server running' in proc.stdout: # tmux 2.0
327327
return False
328-
elif 'session not found' in proc.stdout:
328+
elif 'can\'t find session' in proc.stdout: # tmux 2.1
329329
return False
330-
elif 'can\'t find session' in proc.stdout:
330+
elif 'session not found' in proc.stdout:
331331
return False
332332
else:
333333
return True

0 commit comments

Comments
 (0)