rokucommunity / roku-debug

A compatibility wrapper around the BrightScript debug protocol https://developer.roku.com/en-ca/docs/developer-program/debugging/socket-based-debugger.md
MIT License
13 stars 9 forks source link

Disable thread hopping workaround >= protocol v3.1.0 #95

Closed TwitchBronBron closed 2 years ago

TwitchBronBron commented 2 years ago

Debug protocol v3.1.0 fixed a bug where the main thread would always be marked as primary even if it wasn't.

This PR addds a check for the protocol version, and if protocol v3.1.0 or greater, we trust the isPrimary property from the thread received from the device.