transit: ignore errors on sockets we were about to close anyways
This commit is contained in:
parent
60079a9fcf
commit
be2c66a5f5
|
@ -371,7 +371,13 @@ class Common:
|
|||
self.winning.set()
|
||||
else:
|
||||
if self.is_sender:
|
||||
send_to(skt, b"nevermind\n")
|
||||
try:
|
||||
send_to(skt, b"nevermind\n")
|
||||
except socket.error:
|
||||
# They realized this connection is not going to win, and
|
||||
# closed it so fast we didn't get a chance to tell them
|
||||
# it lost. This happens in unit tests.
|
||||
pass
|
||||
skt.close()
|
||||
|
||||
def connect(self):
|
||||
|
|
Loading…
Reference in New Issue
Block a user