Skip to content

Commit

Permalink
remove misleading target keyword arg in examples
Browse files Browse the repository at this point in the history
  • Loading branch information
miguelgrinberg committed Nov 22, 2018
1 parent 4b0648c commit 7463d34
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions example/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__)
Expand Down Expand Up @@ -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})


Expand Down
3 changes: 1 addition & 2 deletions example/app_namespace.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 7463d34

Please sign in to comment.