fixed connection wait

Former-commit-id: 34c27602526346c7caa9880113cb90f6862503fe
Former-commit-id: 5e1e6a73df0ad78e023d5f0ab70be9abd391ea88
This commit is contained in:
nathan 2017-09-05 10:41:00 +00:00
parent 7449d7b066
commit 345e7bf9fe
2 changed files with 7 additions and 4 deletions

View file

@ -1 +1 @@
07b6d82450c0a8be87c3ff832b90537a06e9cb20 ed63e44c0b11204e27b1007445b40aa85a15684a

View file

@ -309,9 +309,12 @@ int main(int argc, char **argv) {
// Try to connect to the selected ip address and port. We only support *ONE* input connection which we initiate.here. // Try to connect to the selected ip address and port. We only support *ONE* input connection which we initiate.here.
c = (struct client *) malloc(sizeof(*c)); c = (struct client *) malloc(sizeof(*c));
while(1) {
if ((fd = setupConnection(c)) == ANET_ERR) { if ((fd = setupConnection(c)) == ANET_ERR) {
fprintf(stderr, "Failed to connect to %s:%d\n", View1090.net_input_beast_ipaddr, Modes.net_input_beast_port); fprintf(stderr, "Waiting on %s:%d\n", View1090.net_input_beast_ipaddr, Modes.net_input_beast_port);
exit(1); } else {
break;
}
} }
/* /*