protect from shutdown pkg arriving without havin seen a startup package

This commit is contained in:
andreas
2006-04-28 12:15:13 +00:00
parent 72b60c2665
commit 8c2bdc1500
+4 -1
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env python
# $Id: hbd,v 1.8 2006/01/21 17:52:27 andreas Exp $
# $Id: hbd,v 1.9 2006/04/28 12:15:13 andreas Exp $
# Wait for heartbeat messages and act on them (or their absence)
#
import time, os, string, sys, socket, atexit, select, SocketServer, getopt
@@ -305,7 +305,10 @@ def readsock():
log("%s shutdown" % name)
hosts[name].newstate(Host.down)
if interval > 0:
try:
hosts[name].interval=interval
except:
pass
#