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()
|
self.winning.set()
|
||||||
else:
|
else:
|
||||||
if self.is_sender:
|
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()
|
skt.close()
|
||||||
|
|
||||||
def connect(self):
|
def connect(self):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user