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

Unverified Commit bc1c9a41 authored by Danny Lin's avatar Danny Lin
Browse files

fastboot: Don't set device to null upon disconnect

Now that isConnected has been refactored, we don't need this anymore.
Remove it to fix race conditions causing the following error during
flashing:

TypeError: Cannot read property 'transferOut' of null
parent f531dd12
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -211,7 +211,6 @@ export class FastbootDevice {
            navigator.usb.addEventListener("disconnect", (event) => {
                if (event.device === this.device) {
                    common.logDebug("USB device disconnected");
                    this.device = null;
                    if (this._disconnectResolve !== null) {
                        this._disconnectResolve();
                        this._disconnectResolve = null;