Skip to content

Commit

Permalink
remove unnecessary None guard
Browse files Browse the repository at this point in the history
  • Loading branch information
cyberw committed Oct 28, 2022
1 parent f24afd2 commit 357057f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locust/runners.py
Original file line number Diff line number Diff line change
Expand Up @@ -891,7 +891,7 @@ def stop(self, send_stop_to_client: bool = True) -> None:
self.server.send_to_client(Message("stop", None, client.id))

# Give an additional 60s for all workers to stop
timeout = gevent.Timeout(self.environment.stop_timeout or 0 + 60)
timeout = gevent.Timeout(self.environment.stop_timeout + 60)
timeout.start()
try:
while self.user_count != 0:
Expand Down

0 comments on commit 357057f

Please sign in to comment.