/// Requests the ending of the capture thread dand performs a blocking wait for it.
Requests the ending of the capture thread dand performs a blocking wait for it.
Requests the ending of the capture thread dand performs a blocking wait for it .
pub fn finish_capture_thread(&mut self) {
        if let Some(ref mut capture_thread_data) = self.capture_thread_data {
            let _ = capture_thread_data.sender.send(MainToCaptureThreadMsg::Finish);
            let _ = capture_thread_data.join_handle.take().unwrap().join();
        }
        if self.capture_thread_data.is_some() {
            self.capture_thread_data = None;
        }
    }
pub fn finish_capture_thread ( & mut self ) { if let Some ( ref mut capture_thread_data ) = self . capture_thread_data { let _ = capture_thread_data . sender . send ( MainToCaptureThreadMsg :: Finish ) ; let _ = capture_thread_data . join_handle . take ( ) . unwrap ( ) . join ( ) ; } if self . capture_thread_data . is_some ( ) { self . capture_thread_data = None ; } }
Requests the ending of the capture thread dand performs a blocking wait for it.
Requests the ending of the capture thread dand performs a blocking wait for it .
&mut self