From cd9e1a7c6427eb6e13abea15d84dfc692f843df2 Mon Sep 17 00:00:00 2001 From: Miguel Grinberg Date: Tue, 28 Jun 2016 10:19:51 -0700 Subject: [PATCH] pass return value of start_background_task to the caller --- socketio/server.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/socketio/server.py b/socketio/server.py index 7d73606..77f4d66 100644 --- a/socketio/server.py +++ b/socketio/server.py @@ -322,7 +322,7 @@ class Server(object): the Python standard library. The `start()` method on this object is already called by this function. """ - self.eio.start_background_task(target, *args, **kwargs) + return self.eio.start_background_task(target, *args, **kwargs) def sleep(self, seconds=0): """Sleep for the requested amount of time using the appropriate async