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

Commit f494d801 authored by Simon Chan's avatar Simon Chan
Browse files

chore: fix build warnings

parent 4d01f251
Loading
Loading
Loading
Loading
+1 −5
Original line number Diff line number Diff line
@@ -45,11 +45,7 @@ module.exports = withMDX({
            // https://github.com/vercel/next.js/pull/7550#issuecomment-512861158
            // https://github.com/vercel/next.js/issues/12861
            exclude: [
                /@next\/react-dev-overlay/,
                /@next\/react-refresh-utils\/runtime.js$/,
                /@next\/react-refresh-utils\/internal\/helpers.js$/,
                /next\/dist\/build\/polyfills\/unfetch.js$/,
                /next\/dist\/build\/polyfills\/unfetch.js$/,
                /next/,
            ],
            use: ['source-map-loader'],
            enforce: 'pre',
+0 −1
Original line number Diff line number Diff line
@@ -203,7 +203,6 @@ function _Connect(): JSX.Element | null {
    const disconnect = useCallback(async () => {
        try {
            await GlobalState.device!.close();
            GlobalState.setDevice(undefined, undefined);
        } catch (e: any) {
            GlobalState.showErrorDialog(e);
        }
+4 −0
Original line number Diff line number Diff line
@@ -39,6 +39,10 @@ const state = makeAutoObservable({
});

autorun(() => {
    if (!terminal) {
        return;
    }

    if (!GlobalState.device) {
        terminal.socket = undefined;
        return;
+7 −0
Original line number Diff line number Diff line
@@ -267,6 +267,13 @@ export class Adb implements Closeable {
        return framebuffer(this);
    }

    /**
     * Close the ADB connection.
     *
     * Note that it won't close the streams from backends.
     * The streams are both physically and logically intact,
     * and can be reused.
     */
    public async close(): Promise<void> {
        await this.dispatcher.close();
    }