newrelic/video-agent-roku

`NewRelicWait()` infinite loop

Closed this issue · 2 comments

function NewRelicWait(port as Object, foo as Function) as Void

There is no way to exit this loop and finish running NewRelicWait().
Reaching the end of main() is the only way to safely exit a Brightscript application without a crash being reported.

if nrProcessMessage(msg) = false
    'handle message manually
    res = foo(msg)
    if res = false then return
end if

or something similar should suffice

Fixed in d0e7d1a