Loading apps/demo/next.config.js +1 −5 Original line number Diff line number Diff line Loading @@ -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', Loading apps/demo/src/components/connect.tsx +0 −1 Original line number Diff line number Diff line Loading @@ -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); } Loading apps/demo/src/pages/shell.tsx +4 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,10 @@ const state = makeAutoObservable({ }); autorun(() => { if (!terminal) { return; } if (!GlobalState.device) { terminal.socket = undefined; return; Loading libraries/adb/src/adb.ts +7 −0 Original line number Diff line number Diff line Loading @@ -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(); } Loading Loading
apps/demo/next.config.js +1 −5 Original line number Diff line number Diff line Loading @@ -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', Loading
apps/demo/src/components/connect.tsx +0 −1 Original line number Diff line number Diff line Loading @@ -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); } Loading
apps/demo/src/pages/shell.tsx +4 −0 Original line number Diff line number Diff line Loading @@ -39,6 +39,10 @@ const state = makeAutoObservable({ }); autorun(() => { if (!terminal) { return; } if (!GlobalState.device) { terminal.socket = undefined; return; Loading
libraries/adb/src/adb.ts +7 −0 Original line number Diff line number Diff line Loading @@ -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(); } Loading