diff --git a/example/app.py b/example/app.py index c57e5745..df323cb8 100755 --- a/example/app.py +++ b/example/app.py @@ -6,7 +6,7 @@ # Set this variable to "threading", "eventlet" or "gevent" to test the # different async modes, or leave it set to None for the application to choose -# the best option based on installed packages. +# the best option gased on installed packages. async_mode = None app = Flask(__name__) @@ -100,7 +100,7 @@ def test_connect(): global thread with thread_lock: if thread is None: - thread = socketio.start_background_task(target=background_thread) + thread = socketio.start_background_task(background_thread) emit('my_response', {'data': 'Connected', 'count': 0}) diff --git a/example/app_namespace.py b/example/app_namespace.py index 30c32229..b874a002 100755 --- a/example/app_namespace.py +++ b/example/app_namespace.py @@ -84,8 +84,7 @@ def on_connect(self): global thread with thread_lock: if thread is None: - thread = socketio.start_background_task( - target=background_thread) + thread = socketio.start_background_task(background_thread) emit('my_response', {'data': 'Connected', 'count': 0}) def on_disconnect(self):