cdynak / lift-event-based-control

event-based control project
Other
0 stars 0 forks source link

graphics.py still blocks port #2

Open cdynak opened 8 years ago

cdynak commented 8 years ago

the problem still occurs. sometimes if graphics.py crashes, it is not possible to run it once again:

$ python graphics.py 
Traceback (most recent call last):
  File "graphics.py", line 136, in <module>
    listener = ListenInstructions(8089, queue_in, lambda: scheduler(queue_in, queue_out, scena))
  File "/home/cdynak/lift-event-based-control/simulator/my_threads.py", line 97, in __init__
    self.serversocket.bind(('localhost', self.port))
  File "/usr/lib/python2.7/socket.py", line 224, in meth
    return getattr(self._sock,name)(*args)
socket.error: [Errno 98] Address already in use