+void SigSession::stop_capture()
+{
+ if(get_capture_state() == Stopped)
+ return;
+
+ sr_session_stop();
+
+ // Check that sampling stopped
+ if(_sampling_thread.get())
+ _sampling_thread->join();
+ _sampling_thread.reset();
+
+ _capture_state = Stopped;
+}
+