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 7198957 commit 851856eCopy full SHA for 851856e
libtmux/server.py
@@ -319,8 +319,6 @@ def attached_sessions(self):
319
"""
320
Return active :class:`Session` objects.
321
322
- This will not work where multiple tmux sessions are attached.
323
-
324
Returns
325
-------
326
list of :class:`Session`
@@ -332,7 +330,7 @@ def attached_sessions(self):
332
330
for session in sessions:
333
331
attached = session.get('session_attached')
334
# for now session_active is a unicode
335
- if attached == '1':
+ if attached != '0':
336
logger.debug('session %s attached', session.get('name'))
337
attached_sessions.append(session)
338
else:
0 commit comments