| 143 | if (!cli_distributed_coordinator(cfg)) return 0; |
| 144 | |
| 145 | char err[256] = {0}; |
| 146 | char last[256] = {0}; |
| 147 | unsigned ticks = 0; |
| 148 | const struct timespec delay = {0, 250000000L}; |
| 149 | |
| 150 | for (;;) { |
| 151 | int ready = ds4_session_distributed_route_ready(session, err, sizeof(err)); |
| 152 | if (ready > 0) { |
| 153 | if (ticks) fprintf(stderr, "ds4: distributed route ready\n"); |
| 154 | return 0; |
| 155 | } |
| 156 | if (ready < 0) { |