Allow threads to reopen after closing

This commit is contained in:
Paul Hollinsky
2018-11-16 17:08:53 -05:00
parent 0cf1e7fe7f
commit 07a5dc4118
7 changed files with 14 additions and 1 deletions
+1
View File
@@ -228,6 +228,7 @@ bool PCAP::close() {
closing = true; // Signal the threads that we are closing
readThread.join();
writeThread.join();
closing = false;
pcap.close(interface.fp);
interface.fp = nullptr;