Skip to content

Commit dcd4b2b

Browse files
committed
Fix EventQueue bug introduced by commit 9b55ca5
1 parent 17920a4 commit dcd4b2b

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

cothread/cothread.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -834,13 +834,13 @@ class EventQueue(EventBase):
834834
]
835835

836836
def __init__(self):
837-
EventBase.__init__(self)
837+
EventBase.__init__(self, max_length = None)
838838
self.__queue = []
839839
self.__closed = False
840+
self.__max_length = max_length
840841

841-
def __len__(self, max_length = None):
842+
def __len__(self):
842843
'''Returns the number of objects waiting on the queue.'''
843-
self.__max_length = max_length
844844
return len(self.__queue)
845845

846846
def Wait(self, timeout = None):

0 commit comments

Comments
 (0)