mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-10-20 20:22:10 +00:00
macOS: Fix an error in remote control when using --listen-on. Fixes #679
This commit is contained in:
parent
2491fafe98
commit
8bfdc47998
1 changed files with 4 additions and 1 deletions
|
|
@ -58,7 +58,10 @@ class SocketIO:
|
|||
|
||||
def __exit__(self, *a):
|
||||
import socket
|
||||
self.socket.shutdown(socket.SHUT_RDWR)
|
||||
try:
|
||||
self.socket.shutdown(socket.SHUT_RDWR)
|
||||
except EnvironmentError:
|
||||
pass # on some OSes such as macOS the socket is already closed at this point
|
||||
self.socket.close()
|
||||
|
||||
def send(self, data):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue