We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d25a34 commit 5640bf0Copy full SHA for 5640bf0
tmuxp/server.py
@@ -321,11 +321,16 @@ def has_session(self, target_session):
321
322
proc = self.cmd('has-session', '-t%s' % target_session)
323
324
- if 'failed to connect to server' in proc.stdout:
+ if proc.stdout == []:
325
+ return True
326
+ if any(
327
+ x in proc.stdout for x in
328
+ ['failed to connect to server', 'error connecting to']
329
+ ):
330
return False
331
elif 'no server running' in proc.stdout: # tmux 2.0
332
- elif 'can\'t find session' in proc.stdout: # tmux 2.1
333
+ elif 'can\'t find session' in proc.stdout: # tmux 2.1
334
335
elif 'session not found' in proc.stdout:
336
0 commit comments