Fix locking on PreciseRunner.stop()
This fix only applies to when stream is a ReadWriteStreampull/10/head
parent
a3274b8d33
commit
09c728fb33
|
@ -151,6 +151,8 @@ class PreciseRunner(object):
|
|||
"""Stop listening and close stream"""
|
||||
if self.thread:
|
||||
self.running = False
|
||||
if isinstance(self.stream, ReadWriteStream):
|
||||
self.stream.write(b'\0' * self.chunk_size)
|
||||
self.thread.join()
|
||||
self.thread = None
|
||||
|
||||
|
|
Loading…
Reference in New Issue