getlantern / browsersunbounded

Interoperable browser-based P2P proxies for censorship circumvention
GNU General Public License v3.0
16 stars 0 forks source link

[client] Add a start/stop guard #46

Closed soltzen closed 1 year ago

soltzen commented 1 year ago

Related to https://github.com/getlantern/broflake/issues/42#issuecomment-1333971424

This avoids a potential race condition when start() is called twice, which'll reuse existing global vars

noahlevenson commented 1 year ago

For visibility: @soltzen and I chatted about this offline. This PR addresses https://github.com/getlantern/broflake/issues/25, and in light of the details described in that issue, we decided to hold off on merging this one for now.