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

Cannot read property 'tracker' of null #1589

Open
guanzo opened this issue Mar 5, 2019 · 2 comments
Open

Cannot read property 'tracker' of null #1589

guanzo opened this issue Mar 5, 2019 · 2 comments
Labels

Comments

@guanzo
Copy link
Contributor

@guanzo guanzo commented Mar 5, 2019

I can't reproduce it locally but Sentry is reporting this error a lot. My code calls torrent.destroy(), which sets this.client = null. It seems like the getAnnounceOpts function is still called after the torrent is destroyed. Maybe add a guard clause: if (this.destroyed) return?

if (this.client.tracker.getAnnounceOpts) {

@stale

This comment has been minimized.

Copy link

@stale stale bot commented Jun 3, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@stale stale bot added the stale label Jun 3, 2019
@guanzo guanzo closed this Jun 3, 2019
@feross feross reopened this Aug 6, 2019
@stale stale bot removed the stale label Aug 6, 2019
@feross

This comment has been minimized.

Copy link
Member

@feross feross commented Aug 6, 2019

Re-opening this issue so that someone can look into it and see if it's still an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.