Skip to content
This repository has been archived by the owner on Jun 5, 2021. It is now read-only.

Sometimes result is undefined and crashes #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

runningdeveloper
Copy link

Sometimes result is undefined and "'result' in result" crashes app when using webtorrent cli to play video on xbmc

This is the error I get: TypeError: Cannot use 'in' operator to search for 'result' in undefined

Adding an undefined check helps prevent webtorrent from crashing. Maybe you could check 'response' further up but this seems to work.

using node v8.4.0

Sometimes result is undefined and "'result' in result" crashes app when using webtorrent cli to play video on xbmc
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant