| 175 | } |
| 176 | |
| 177 | void openhd::UDPReceiver::stopLooping() { |
| 178 | receiving = false; |
| 179 | // from |
| 180 | // https://github.com/mavlink/MAVSDK/blob/main/src/mavsdk/core/udp_connection.cpp#L102 |
| 181 | shutdown(mSocket, SHUT_RDWR); |
| 182 | close(mSocket); |
| 183 | } |
| 184 | |
| 185 | void openhd::UDPReceiver::runInBackground() { |
| 186 | if (receiverThread) { |
nothing calls this directly
no outgoing calls
no test coverage detected