Skip to content

Commit

Permalink
Increase bluetooth and usb connection timeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
nisargjhaveri committed May 20, 2024
1 parent 90c8c63 commit f5965d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aa_wireless_dongle/package/aawg/src/bluetoothHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ void BluetoothHandler::retryConnectLoop() {
while (!should_exit) {
connectDevice();

if (connectWithRetryFuture.wait_for(std::chrono::seconds(10)) == std::future_status::ready) {
if (connectWithRetryFuture.wait_for(std::chrono::seconds(20)) == std::future_status::ready) {
should_exit = true;
connectWithRetryPromise = nullptr;
}
Expand Down
2 changes: 1 addition & 1 deletion aa_wireless_dongle/package/aawg/src/proxyHandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ void AAWProxy::handleClient(int server_sock) {
BluetoothHandler::instance().stopConnectWithRetry();

if (Config::instance()->getConnectionStrategy() != ConnectionStrategy::USB_FIRST) {
if (!UsbManager::instance().enableDefaultAndWaitForAccessory(std::chrono::seconds(10))) {
if (!UsbManager::instance().enableDefaultAndWaitForAccessory(std::chrono::seconds(30))) {
return;
}
}
Expand Down

0 comments on commit f5965d9

Please sign in to comment.