Open tballmsft opened 2 years ago
@pelikhan - are you able to repro this?
Not investigated yet
starting into it... first question - why are we using control.onEvent in pxt-jacdac/routing.ts for dealing with Jacdac events?
protected registerEvent(value: number, handler: () => void) {
this.start()
control.onEvent(this.eventId, value, handler)
}
this predates adding event source support in jacdac base types. The trouble with dynamic clients is that we leak those handlers.
Works now: @pelikhan - did you do something to address this?
Now, doesn't work... race condition?