Better threading logic when waiting for a connection (SMACK-37).
Better threading logic when waiting for a connection (SMACK-37).


git-svn-id: 0d4d1bf2e47502aa0f0957c230a0ec7fa56198fd@2469 b35dd754-fafc-0310-a699-88a17e54d16e

chuangWu/Smack,hy9902/Smack,andrey42/Smack,mar-v-in/Smack,unisontech/Smack,cjpx00008/Smack,andrey42/Smack,magnetsystems/message-smack,lovely3x/Smack,xuIcream/Smack,qingsong-xu/Smack,hy9902/Smack,chuangWu/Smack,esl/Smack,igniterealtime/Smack,ayne/Smack,lovely3x/Smack,vanitasvitae/smack-omemo,esl/Smack,kkroid/OnechatSmack,u20024804/Smack,annovanvliet/Smack,xuIcream/Smack,annovanvliet/Smack,vanitasvitae/Smack,unisontech/Smack,u20024804/Smack,vanitasvitae/Smack,deeringc/Smack,vanitasvitae/Smack,dpr-odoo/Smack,qingsong-xu/Smack,mar-v-in/Smack,vito-c/Smack,magnetsystems/message-smack,mar-v-in/Smack,TTalkIM/Smack,igniterealtime/Smack,kkroid/OnechatSmack,ishan1604/Smack,igorexax3mal/Smack,Flowdalic/Smack,Flowdalic/Smack,xuIcream/Smack,qingsong-xu/Smack,Tibo-lg/Smack,Tibo-lg/Smack,cjpx00008/Smack,ishan1604/Smack,lovely3x/Smack,magnetsystems/message-smack,igorexax3mal/Smack,hy9902/Smack,igorexax3mal/Smack,Tibo-lg/Smack,cjpx00008/Smack,chuangWu/Smack,TTalkIM/Smack,kkroid/OnechatSmack,annovanvliet/Smack,igniterealtime/Smack,ayne/Smack,TTalkIM/Smack,Flowdalic/Smack,ishan1604/Smack,deeringc/Smack,dpr-odoo/Smack,vanitasvitae/smack-omemo,vito-c/Smack,esl/Smack,opg7371/Smack,u20024804/Smack,vanitasvitae/smack-omemo,ayne/Smack,deeringc/Smack,dpr-odoo/Smack,unisontech/Smack,opg7371/Smack,opg7371/Smack,andrey42/Smack