| 183 | } |
| 184 | |
| 185 | void openhd::UDPReceiver::runInBackground() { |
| 186 | if (receiverThread) { |
| 187 | get_console()->warn( |
| 188 | "Receiver thread is already running or has not been properly stopped"); |
| 189 | return; |
| 190 | } |
| 191 | receiving = true; |
| 192 | receiverThread = |
| 193 | std::make_unique<std::thread>(&UDPReceiver::loopUntilError, this); |
| 194 | } |
| 195 | |
| 196 | void openhd::UDPReceiver::stopBackground() { |
| 197 | stopLooping(); |
no test coverage detected