diff --git a/geventreactor/__init__.py b/geventreactor/__init__.py index 21fbb13..dc6036d 100644 --- a/geventreactor/__init__.py +++ b/geventreactor/__init__.py @@ -147,7 +147,7 @@ def callInThread(self,func,*args,**kwargs): def callInThreadWithCallback(self,onResult,func,*args,**kwargs): """Call a callable object in a separate greenlet and call onResult with the return value.""" if self.open: - def task(): + def task(*args, **kwargs): try: res = func(*args,**kwargs) except: