2 second wait to reopen socket

pull/118/head
alanbjohnston 5 years ago committed by GitHub
parent 481a1fee94
commit 874ae4830e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1577,7 +1577,7 @@ void get_tlm_fox() {
printf("\nConnection Failed \n");
printf("Error: %s \n", strerror(errno));
error = 1;
sleep(1.0); // sleep if socket connection refused
sleep(2.0); // sleep if socket connection refused
// try again
error = 0;
@ -1601,7 +1601,7 @@ void get_tlm_fox() {
printf("\nConnection Failed \n");
printf("Error: %s \n", strerror(errno));
error = 1;
sleep(1.0); // sleep if socket connection refused
// sleep(1.0); // sleep if socket connection refused
}
}
if (error == 1)

Loading…
Cancel
Save

Powered by TurnKey Linux.