wait a little, depending on the system, the socket took some time to be

released. Solve error I have when testing and going back to old address
too fast.
This commit is contained in:
benoitc 2010-06-17 17:12:55 +02:00
parent 6ca1a2398e
commit b2a97e4622

View File

@ -47,6 +47,7 @@ class BaseSocket(object):
self.sock.close()
except socket.error, e:
log.info("Error while closing socket %s" % str(e))
time.sleep(0.3)
del self.sock
class TCPSocket(BaseSocket):