better check for unable to connect.

This commit is contained in:
Kelvin Sherlock 2012-04-24 23:54:46 -04:00
parent 9b06d877b1
commit a2fcb6ee11
1 changed files with 4 additions and 1 deletions

View File

@ -304,8 +304,11 @@ void do_gopher(const char *url, URLComponents *components, FILE *file)
return;
}
}
//s16_debug_tcp(buffer.ipid);
if (buffer.state == kConnectionStateError)
if (buffer.state == kConnectionStateError
|| buffer.state == kConnectionStateDisconnected)
{
fprintf(stderr, "Unable to open host: %s:%u\n",
host,