diff --git a/pyghmi/ipmi/private/session.py b/pyghmi/ipmi/private/session.py index e30f2ff7..763db680 100644 --- a/pyghmi/ipmi/private/session.py +++ b/pyghmi/ipmi/private/session.py @@ -1821,6 +1821,8 @@ class Session(object): # if a code somehow makes duplicate SOL handlers, # this would notify all the handlers rather than just the # last one to take ownership + if self._customkeepalives[ka][1] is None: + continue self._customkeepalives[ka][1]( {'error': 'Session Disconnected'}) self._customkeepalives = None