don't die if we cannot send an ACK
This commit is contained in:
@@ -386,7 +386,10 @@ def fromaddr(name, addr, boot, interval, acks):
|
|||||||
def readsock():
|
def readsock():
|
||||||
global htab, win
|
global htab, win
|
||||||
data, addr = sock.recvfrom(1024)
|
data, addr = sock.recvfrom(1024)
|
||||||
sock.sendto("ACK", addr)
|
try:
|
||||||
|
sock.sendto("ACK", addr)
|
||||||
|
except:
|
||||||
|
pass
|
||||||
pairs = string.split(data, ';')
|
pairs = string.split(data, ';')
|
||||||
boot = 0
|
boot = 0
|
||||||
shutdown = 0
|
shutdown = 0
|
||||||
|
|||||||
Reference in New Issue
Block a user