-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
session: Cleanup session.Manager's handling of errors. (#122)
* Cleanup session.Manager's handling of errors. It turns out that cdp.ErrorCause tracks the list of causes and returns the true cause of the problem. In the case of bug #120, the topmost err was internal.OpError, and the ErrorCause returns underlying websocket.CloseError. Actually there's rpcc.closeError in the middle of cause chain, but that's simply skipped, and therefore it fails to recognize the error as closing. This tracks of every step of Cause and return true if any of these errors are closing one. * session: Remove unused import Co-authored-by: Mathias Fredriksson <[email protected]>
- Loading branch information
Showing
2 changed files
with
10 additions
and
9 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