VoIPGRID / VialerSIPLib

An Objective-c wrapper for PJSIP
GNU General Public License v3.0
133 stars 69 forks source link

removeEndpoint is causing main-thread hangs #235

Open gobindersingh opened 3 years ago

gobindersingh commented 3 years ago

Version

3.7.1

File / Feature

File: VSLEndPoint.m VialerSIPLib.sharedInstance().removeEndpoint()

Expected behavior

Destroy pjsua instance successfully without any hang.

Actual behavior

It causes the app to hang for some second ( blocks main thread )

Stacktrace / Error message

Other info

It happens after ending the call using the teardown function

The steps I was doing:

  1. hang up the call
  2. unregister account
  3. remove account from endpoint
  4. remove endpoint
  5. app hangs in - (void)destroyPJSUAInstance method pj_status_t status = pjsua_destroy();.