Fixup workaround for race condition
Fixup workaround for race condition


- Set the state to 'established' before emitting the corresponding event.
- Revert the state change when we ignore the old 'established' event.

AGProjects/sylkrtc.js