mirror of
https://opendev.org/x/pyghmi
synced 2025-01-16 04:38:19 +00:00
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
This commit is contained in:
parent
5832db6a30
commit
f24395bbee
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user