2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-11-22 09:32:21 +00:00

Close console on disconnect

Fixes leftover console on user initiated disconnect.
This commit is contained in:
Jarrod Johnson 2019-10-04 09:57:54 -04:00
parent 59789bae7d
commit d9be6ae2e9

View File

@ -453,6 +453,7 @@ class ConsoleHandler(object):
def _got_disconnected(self):
if self.connectstate != 'unconnected':
self._console.close()
self.connectstate = 'unconnected'
self.log(
logdata='console disconnected', ltype=log.DataTypes.event,