chakrit / gossip

A SIP client library that wraps PJSIP into a nice and clean ObjC-style OO api.
http://chakrit.github.com/gossip
The Unlicense
167 stars 74 forks source link

Enhancement: don't forget to check if connection fails. #5

Open hlung opened 11 years ago

hlung commented 11 years ago

Not really an issue. It's just a point to aware. Any connect (GSAccount -connect) sent right after disconnect ([[GSUserAgent sharedAgent] reset]) will fail (pjsua_acc_set_registration returns PJ_FALSE) because pjsip blocks the app for about 1 second after disconnect to wait for its server requests to complete.

If you already check if connect fails then it's fine. Maybe there should be a timer to delay after disconnection to prevent this :)

chakrit commented 10 years ago

Ah, there're a whole host of issues regarding that + worker threads :/ Ugh.

chakrit commented 10 years ago

reference: #4