Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: enable console logging on page after navigating #176

Merged
merged 1 commit into from
Nov 13, 2019
Merged

Conversation

imurchie
Copy link
Contributor

Without re-enabling console logging, the events only come if we are connected to a local server.

Fixes appium/appium#13431

@@ -172,7 +172,9 @@ class RemoteDebugger extends events.EventEmitter {
}

async disconnect () {
await this.rpcClient.disconnect();
if (this.rpcClient) {
await this.rpcClient.disconnect();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should we also set this.rpcClient to null?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That happens in the teardown function, called later in this function.

@imurchie imurchie merged commit 7e9cc3d into master Nov 13, 2019
@imurchie imurchie deleted the isaac-console branch November 13, 2019 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

safariConsole stays empty
2 participants