Restarting magnet torrent crashes the browser

Summary

This behavior is seen when you start then stop and then restart again torrent in the browser.

Steps to reproduce

  • Open magnet link in the WebTorrent browser to download the content
  • Click on “Start Torrent”
  • Few seconds after download starts actively, click on “Stop Torrent”
  • Few seconds after once downloading stops, click on “Start Torrent” again.
  • And then the browser will be crashed.