mirror of
https://github.com/ksherlock/gopher.git
synced 2024-06-15 08:29:29 +00:00
better check for unable to connect.
This commit is contained in:
parent
9b06d877b1
commit
a2fcb6ee11
5
gopher.c
5
gopher.c
|
@ -305,7 +305,10 @@ void do_gopher(const char *url, URLComponents *components, FILE *file)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (buffer.state == kConnectionStateError)
|
//s16_debug_tcp(buffer.ipid);
|
||||||
|
|
||||||
|
if (buffer.state == kConnectionStateError
|
||||||
|
|| buffer.state == kConnectionStateDisconnected)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "Unable to open host: %s:%u\n",
|
fprintf(stderr, "Unable to open host: %s:%u\n",
|
||||||
host,
|
host,
|
||||||
|
|
Loading…
Reference in New Issue
Block a user