mirror of
https://github.com/ksherlock/gopher.git
synced 2025-02-10 14:31:50 +00:00
better check for unable to connect.
This commit is contained in:
parent
9b06d877b1
commit
a2fcb6ee11
5
gopher.c
5
gopher.c
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user