From 8c2bdc15004c7fa5b41b1dd6cc6ff6acf9e26c5e Mon Sep 17 00:00:00 2001 From: andreas Date: Fri, 28 Apr 2006 12:15:13 +0000 Subject: [PATCH] protect from shutdown pkg arriving without havin seen a startup package --- hbd | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/hbd b/hbd index a3b9703..ca09f3d 100755 --- a/hbd +++ b/hbd @@ -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: - hosts[name].interval=interval + try: + hosts[name].interval=interval + except: + pass #