Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix android e2e tests #16867

Merged
merged 1 commit into from
Feb 6, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions packages/connect/src/device/DeviceList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -380,8 +380,8 @@ export class DeviceList extends TypedEmitter<DeviceListEvents> implements IDevic
this.emit(TRANSPORT.START, getTransportInfo(transport));
}
}
if (transport) {
// new transport started successfully or present transport kept, (re)plan check
if (transport && transport !== transports[0]) {
// new transport started successfully or present transport kept, and it's not the most preferred one, (re)plan check
this.scheduleUpgradeCheck(apiType, initParams);
}
} catch (error) {
Expand All @@ -406,8 +406,8 @@ export class DeviceList extends TypedEmitter<DeviceListEvents> implements IDevic
clearTimeout(this.scheduledUpgradeChecks[apiType]);
this.scheduledUpgradeChecks[apiType] = setTimeout(async () => {
const transport = this.transport[apiType];
if (!transport) return;
const transports = this.transports.filter(t => t.apiType === apiType);
if (!transport || transport === transports[0]) return;
for (const t of transports) {
if (t === transport) break;
if (await t.ping()) {
Expand Down
Loading