Skip to content

Commit

Permalink
Add timeout to linux FileCollector stop (kevoreilly#2290)
Browse files Browse the repository at this point in the history
  • Loading branch information
xiangchen96 authored Aug 26, 2024
1 parent 01d06a6 commit fe51166
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion analyzer/linux/modules/auxiliary/filecollector.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def stop(self):

time.sleep(2) # wait a while to process stuff in the queue
self.do_run = False
self.thread.join()
self.thread.join(timeout=5)

def __init__(self, options, config):
Auxiliary.__init__(self, options, config)
Expand Down

0 comments on commit fe51166

Please sign in to comment.