Skip to content

Commit

Permalink
optimize threading of dummy link
Browse files Browse the repository at this point in the history
  • Loading branch information
Consti10 committed Feb 1, 2024
1 parent 668672b commit bf73916
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/dummy_link/DummyLink.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,11 @@ DummyLink::DummyLink(bool is_air):m_is_air(is_air) {
}

DummyLink::~DummyLink() {
close(m_fd_rx);
m_keep_receiving= false;
close(m_fd_rx);
m_receive_thread->join();
m_receive_thread= nullptr;
close(m_fd_tx);
}

void DummyLink::tx_radiotap(const uint8_t *packet_buff, int packet_size) {
Expand Down

0 comments on commit bf73916

Please sign in to comment.