| 1839 | } |
| 1840 | |
| 1841 | void SigSession::Close() |
| 1842 | { |
| 1843 | if (_bClose) |
| 1844 | return; |
| 1845 | |
| 1846 | _bClose = true; |
| 1847 | |
| 1848 | // Stop decode thread. |
| 1849 | clear_all_decoder(false); |
| 1850 | |
| 1851 | dsv_info("SigSession::Close(), stop capture"); |
| 1852 | stop_capture(); |
| 1853 | |
| 1854 | // TODO: This should not be necessary |
| 1855 | _session = NULL; |
| 1856 | } |
| 1857 | |
| 1858 | // append a decode task, and try create a thread |
| 1859 | void SigSession::add_decode_task(view::DecodeTrace *trace) |