Skip to content

Commit

Permalink
Merge pull request locustio#10 from erlanggakrisnamukti/angga/fb_stop…
Browse files Browse the repository at this point in the history
…_request_log

fixing stop log
  • Loading branch information
pancaprima authored Oct 9, 2017
2 parents 0194cb0 + 3522d0c commit b25b3f8
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion locust/web.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ def stop():
runners.locust_runner.stop()
response = make_response(json.dumps({'success':True, 'message': 'Test stopped'}))
response.headers["Content-type"] = "application/json"
greenlet_spawner.kill(block=True)
if greenlet_spawner != None:
greenlet_spawner.kill(block=True)
return response

@app.route("/stats/reset")
Expand Down

0 comments on commit b25b3f8

Please sign in to comment.