Drop mutex lock before resolving the domain when connecting.
git-svn-id: http://yate.null.ro/svn/yate/trunk@2276 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
parent
795dfd6905
commit
f0ea3aeb91
|
@ -123,8 +123,8 @@ bool JBSocket::connect(bool& terminated, const char* newAddr, int newPort)
|
|||
m_remoteDomain = newAddr;
|
||||
if (newPort)
|
||||
m_address.port(newPort);
|
||||
m_address.host(m_remoteDomain);
|
||||
lck1.drop();
|
||||
m_address.host(m_remoteDomain);
|
||||
terminated = false;
|
||||
bool res = m_socket->connect(m_address);
|
||||
// Lock again to update data
|
||||
|
|
Loading…
Reference in New Issue