fixed connection wait
Former-commit-id: e558c09badab3d566c38e039b06586f5397efd46 Former-commit-id: 2d60a0b33f01d5f43539db6744ccb2fdac58fef1
This commit is contained in:
parent
649c7aa466
commit
ac27da70ea
|
@ -1 +1 @@
|
|||
07b6d82450c0a8be87c3ff832b90537a06e9cb20
|
||||
ed63e44c0b11204e27b1007445b40aa85a15684a
|
|
@ -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.
|
||||
c = (struct client *) malloc(sizeof(*c));
|
||||
while(1) {
|
||||
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);
|
||||
exit(1);
|
||||
fprintf(stderr, "Waiting on %s:%d\n", View1090.net_input_beast_ipaddr, Modes.net_input_beast_port);
|
||||
} else {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Reference in a new issue