We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0fe9ad1 commit 005098dCopy full SHA for 005098d
1 file changed
Lib/profiling/sampling/sample.py
@@ -149,6 +149,7 @@ def wait(timeout):
149
if control_server is not None and current_time >= next_control_poll:
150
control_server.poll(timeout=0)
151
next_control_poll = current_time + 0.001
152
+ # Check if live collector or runtime control wants to stop
153
if not getattr(control, 'running', True) or not getattr(collector, 'running', True):
154
break
155
enabled = getattr(control, 'enabled', True)
0 commit comments