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:
@@ -12,8 +12,10 @@ void MultiChannelCommunication::spawnThreads() {
|
||||
}
|
||||
|
||||
void MultiChannelCommunication::joinThreads() {
|
||||
closing = true;
|
||||
if(mainChannelReadThread.joinable())
|
||||
mainChannelReadThread.join();
|
||||
closing = false;
|
||||
}
|
||||
|
||||
bool MultiChannelCommunication::sendPacket(std::vector<uint8_t>& bytes) {
|
||||
|
||||
Reference in New Issue
Block a user