Fixed #144: lasting resolving is not an error.

This commit is contained in:
Vincent Richard 2016-10-06 21:49:27 +02:00
parent b133ce8cfb
commit 4a0b88a6cc

View File

@ -435,7 +435,9 @@ void posixSocket::resolve(struct ::addrinfo** addrInfo, const vmime::string& add
{ {
if (gaiError == EAI_SYSTEM) if (gaiError == EAI_SYSTEM)
{ {
if (errno != 0) const int ret = gai_error(&gaiRequest);
if (ret != EAI_INPROGRESS && errno != 0)
{ {
try try
{ {