mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-19 21:55:13 +00:00
dont break when socket is pre-closed
This commit is contained in:
parent
285c399ae5
commit
cb78e17594
1 changed files with 4 additions and 2 deletions
|
|
@ -520,8 +520,10 @@ class SocketChild:
|
|||
self.conn.sendall(f'{status}'.encode('ascii'))
|
||||
except OSError as e:
|
||||
print_error(f'Failed to send exit status of socket child with error: {e}')
|
||||
self.conn.shutdown(socket.SHUT_RDWR)
|
||||
self.conn.close()
|
||||
with suppress(OSError):
|
||||
self.conn.shutdown(socket.SHUT_RDWR)
|
||||
with suppress(OSError):
|
||||
self.conn.close()
|
||||
|
||||
def handle_creation(self) -> bool:
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue