mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-08-05 01:18:36 +02:00
Allow threads to reopen after closing
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user