fix freeze if the usb menu is closed whilst a usb cable is not connected, 0.9.0 -> 0.9.1

This commit is contained in:
ITotalJustice
2025-05-03 21:15:21 +01:00
parent 5b6e09b926
commit 365ae2d0cb
4 changed files with 50 additions and 5 deletions

View File

@@ -22,6 +22,9 @@ void thread_func(void* user) {
}
const auto rc = app->m_usb_source->IsUsbConnected(CONNECTION_TIMEOUT);
if (rc == app->m_usb_source->Result_Cancelled) {
break;
}
// set connected status
mutexLock(&app->m_mutex);