Skip to content

Becomes unresponsive when socket is closed #3

Description

@ThomasBarris
Exception in thread Thread-202:
Traceback (most recent call last):
  File "/usr/lib/python2.7/threading.py", line 801, in __bootstrap_inner
    self.run()
  File "/usr/lib/python2.7/threading.py", line 1073, in run
    self.function(*self.args, **self.kwargs)
  File "./ygate.py", line 47, in send_my_position
    sock.send(position_string)
error: [Errno 32] Broken pipe

If the socket is closed for any reason, the program throws the above error repeatedly and becomes unresponsive. send_my_position should catch closed sockets and re-open it.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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