fregante / GhostText

👻 Use your text editor to write in your browser. Everything you type in the editor will be instantly updated in the browser (and vice versa).
https://GhostText.fregante.com
MIT License
3.29k stars 117 forks source link

Error in ST console when a connected tab is closed #21

Closed fregante closed 10 years ago

fregante commented 10 years ago

Not a big bug since GhostText keeps working normally after this error, but maybe it can be solved easily

View with id: 38 closed
Triggering on_close
Unbind view with id: 38
Unbind view with id: 38
Exception in thread Thread-7:
Traceback (most recent call last):
  File "X/threading.py", line 639, in _bootstrap_inner
  File "/Users/bfred/Library/Application Support/Sublime Text 3/Packages/GhostText/GhostText.py", line 31, in run
    self._server.start()
  File "/Users/bfred/Library/Application Support/Sublime Text 3/Packages/GhostText/WebSocket/WebSocketServer.py", line 48, in start
    header = self._conn.recv(24)  # Max web socket header length
OSError: [Errno 9] Bad file descriptor