Made XMPP stream terminate if the host address could not be resolved.

git-svn-id: http://yate.null.ro/svn/yate/trunk@2768 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2009-07-24 11:07:23 +00:00
parent fbfef23187
commit 1546f9fbf7
1 changed files with 1 additions and 1 deletions

View File

@ -120,8 +120,8 @@ bool JBSocket::connect(bool& terminated, const char* newAddr, int newPort)
m_error = "Resolver failure";
DDebug(m_engine,DebugWarn,"Stream. Failed to resolve '%s' [%p]",
m_remoteDomain.safe(),m_stream);
terminated = (m_socket == 0);
terminate();
terminated = m_socket == 0;
return false;
}
DDebug(m_engine,DebugInfo,"Stream. Attempt to connect to '%s:%d' [%p]",