Fix closure on socket activation

This commit is contained in:
Florian Mounier
2015-06-25 14:46:44 +02:00
parent 6e5edde6dc
commit 97de0cc46c

View File

@@ -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)