mirror of
https://github.com/paradoxxxzero/butterfly.git
synced 2026-05-26 07:08:08 +00:00
Fix closure on socket activation
This commit is contained in:
@@ -208,7 +208,7 @@ class TermWebSocket(Route, tornado.websocket.WebSocketHandler):
|
||||
else:
|
||||
self.log.error(
|
||||
'Socket with neither session nor terminal %r' % self)
|
||||
if self.application.systemd and not len(TermWebSocket.terminals):
|
||||
if self.application.systemd and not len(TermWebSocket.sockets):
|
||||
sys.exit(0)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user