-
-
Notifications
You must be signed in to change notification settings - Fork 298
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
12 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -203,7 +203,6 @@ function _Connect(): JSX.Element | null { | |||||||||||||||||
const disconnect = useCallback(async () => { | ||||||||||||||||||
try { | ||||||||||||||||||
await GlobalState.device!.close(); | ||||||||||||||||||
GlobalState.setDevice(undefined, undefined); | ||||||||||||||||||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
yume-chan
Author
Owner
|
this._abortController.abort(); |
should trigger the pipe
to reject
ya-webadb/libraries/adb/src/socket/dispatcher.ts
Lines 102 to 108 in a14d82c
// https://github.com/MattiasBuelens/web-streams-polyfill/issues/115 | |
// `e` is always `AbortError` (instead of what I give in `abortController.abort()`) | |
// so we can't check if `e` is a real error. | |
if (!this._closed) { | |
this._disconnected.reject(e); | |
} | |
this.dispose(); |
This means the callers only need to observe the disconnected
promise, and this line is not necessary.
But now it doesn't work.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 comment
on commit f494d80
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
ya-webadb – ./
ya-webadb-git-master-yume-chan.vercel.app
ya-webadb-yume-chan.vercel.app
ya-webadb.vercel.app
after remove this , disconnect button does not responding any more.