flutter-webrtc / dart-sip-ua

A dart-lang version of the SIP UA stack.
MIT License
339 stars 269 forks source link

Restart helper doesn't work #469

Open Paddington12345 opened 3 months ago

Paddington12345 commented 3 months ago

I would like to stop and then start sipua helper on re-registration. Although stop() seems to be synchronous, start() doesn't work if it's called immediately afterwards.

To Reproduce Steps to reproduce the behavior:

  1. Registered & connected to websockets.. Sip helper is connected.
  2. Stop sipua helper
  3. Start sipua helper immediately afterwards
  4. Helper is not started

Expected behavior I would expect helper to be started if you call stop() and start() immediately afterwards. But it looks like it only works if you put some delay between stop() and start().

System Infomation() Flutter SDK Version: any Target OS and Version: any Host OS and Version: any

victortive commented 3 months ago

Yeah the library emits a lot of events that are asynchronous

Paddington12345 commented 3 months ago

Yes I see:)