fix reconnect logic

This commit is contained in:
lilydjwg 2021-04-13 13:42:17 +08:00
parent 6e53d15569
commit 54febc8b22
2 changed files with 5 additions and 2 deletions

View file

@ -47,6 +47,7 @@ class FcitxComm(object):
try:
return func(*args, **kwargs)
except (socket.error, socket.timeout, struct.error) as e:
self.sock = None
self._error(e)
def _status(self):