Skip to content

Reconnect when connection was lost #2

@elecnix

Description

@elecnix
ping
Received message: {"type":"pong"}
An error occurred: Connection to remote host was lost.
Connection closed.
ping
Exception in thread Thread-247:
Traceback (most recent call last):
  File "/home/nicolas/Source/ticktick-scenes/.conda/lib/python3.11/threading.py", line 1038, in _bootstrap_inner
    self.run()
  File "/home/nicolas/Source/ticktick-scenes/.conda/lib/python3.11/threading.py", line 1394, in run
    self.function(*self.args, **self.kwargs)
  File "/home/nicolas/Source/ticktick-scenes/pomodoro.py", line 119, in send_ping
    ws.send(json.dumps(ping))
  File "/home/nicolas/Source/ticktick-scenes/.conda/lib/python3.11/site-packages/websocket/_app.py", line 253, in send
    raise WebSocketConnectionClosedException(
websocket._exceptions.WebSocketConnectionClosedException: Connection is already closed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions