From f24395bbee4dbb8269c6817febf7be489e37d838 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 11 Sep 2013 15:21:36 -0400 Subject: [PATCH] Fix mistake with external filehandle and solconnect In changing to select, the nature of the return value failed. When using poll(), we got file descriptor number. However select provides the object and so we have to consult the fileno() method. Change-Id: Ic525b315024b164eed22238ad1e4a89eed0fcf0c --- pyghmi/ipmi/private/session.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyghmi/ipmi/private/session.py b/pyghmi/ipmi/private/session.py index 5cea00f1..ca656afa 100644 --- a/pyghmi/ipmi/private/session.py +++ b/pyghmi/ipmi/private/session.py @@ -660,7 +660,7 @@ class Session: rdata = cls.socket.recvfrom(3000) pktqueue.append(rdata) for handlepair in _poller(cls.readersockets): - myhandle = handlepair[0] + myhandle = handlepair.fileno() if myhandle != cls.socket.fileno(): myfile = cls._external_handlers[myhandle][1] cls._external_handlers[myhandle][0](myfile)