Skip to content

Commit cd9e1a7

Browse files
pass return value of start_background_task to the caller
1 parent 0810f0b commit cd9e1a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

socketio/server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ def start_background_task(self, target, *args, **kwargs):
322322
the Python standard library. The `start()` method on this object is
323323
already called by this function.
324324
"""
325-
self.eio.start_background_task(target, *args, **kwargs)
325+
return self.eio.start_background_task(target, *args, **kwargs)
326326

327327
def sleep(self, seconds=0):
328328
"""Sleep for the requested amount of time using the appropriate async

0 commit comments

Comments
 (0)