Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Unverified Commit 7b3816e6 authored by Danny Lin's avatar Danny Lin
Browse files

dist: Update bundles

parent 9b934bf7
Loading
Loading
Loading
Loading
+13 −4
Original line number Diff line number Diff line
@@ -3156,15 +3156,13 @@ class FastbootDevice {
            await this.device.claimInterface(0); // fastboot
        } catch (error) {
            // Propagate exception from waitForConnect()
            let rejected = false;
            if (this._connectReject !== null) {
                this._connectReject(error);
                this._connectResolve = null;
                this._connectReject = null;
                rejected = true;
            }

            if (rethrowErrors && rejected) {
            if (rethrowErrors) {
                throw error;
            }
        }
@@ -3264,7 +3262,18 @@ class FastbootDevice {
            navigator.usb.addEventListener("connect", async (event) => {
                logDebug("USB device connected");
                this.device = event.device;

                // Check whether waitForConnect() is pending and save it for later
                let hasPromiseReject = this._connectReject !== null;
                try {
                    await this._validateAndConnectDevice(false);
                } catch (error) {
                    // Only rethrow errors from the event handler if waitForConnect()
                    // didn't already handle them
                    if (!hasPromiseReject) {
                        throw error;
                    }
                }
            });

            this._registeredUsbListeners = true;
+1 −1

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1

File changed.

Preview size limit exceeded, changes collapsed.

+1 −1

File changed.

Preview size limit exceeded, changes collapsed.

Loading