parameters: (self)
docstring: Stop the receiver thread, wait until it's finished.
docstring_summary: Stop the receiver thread, wait until it's finished.
docstring_tokens: Stop the receiver thread wait until it s finished .
function: def StopThread(self):
          """Stop the receiver thread, wait until it's finished."""
          if self.thread is not None:
              self.alive.clear()          # clear alive event for thread
              self.thread.join()          # wait until thread has finished
              self.thread = None
function_tokens: def StopThread ( self ) : if self . thread is not None : self . alive . clear ( ) # clear alive event for thread self . thread . join ( ) # wait until thread has finished self . thread = None