Skip to content

Commit

Permalink
Always return lists from Select, not None
Browse files Browse the repository at this point in the history
  • Loading branch information
Bjarni R. Einarsson committed Jun 1, 2020
1 parent 6e5add6 commit 67d0836
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pagekite/pk.py
Original file line number Diff line number Diff line change
Expand Up @@ -3892,7 +3892,7 @@ def ProcessDead(self, epoll=None):
self.conns.Remove(conn)

def Select(self, epoll, waittime):
iready = oready = eready = None
iready = oready = eready = []
isocks, osocks = self.conns.Readable(), self.conns.Blocked()
try:
if isocks or osocks:
Expand Down

0 comments on commit 67d0836

Please sign in to comment.