Skip to content

Commit 4e16a70

Browse files
authored
pluggable_discovery: Allow the scanner thread to quit (#1029)
When receiving a `QUIT` message, the main thread was trying to tell the scanner thread to quit - however, what it was actually doing was creating a local variable that shadowed the global flag used by the scanner thread. Fix that by ensuring that the main thread uses the global variable instead. Fixes #1028
1 parent d717b58 commit 4e16a70

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/pluggable_discovery.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def scanner():
5454
scannerGo = True
5555

5656
def main():
57+
global scannerGo
5758
while True:
5859
cmdline = input()
5960
cmd = cmdline.split()[0]

0 commit comments

Comments
 (0)