| 163 | } |
| 164 | |
| 165 | static gboolean |
| 166 | mon_timer_popped(gpointer data) |
| 167 | { |
| 168 | int rc = pcmk_ok; |
| 169 | |
| 170 | if (timer_id > 0) { |
| 171 | g_source_remove(timer_id); |
| 172 | } |
| 173 | |
| 174 | rc = cib_connect(TRUE); |
| 175 | |
| 176 | if (rc != pcmk_ok) { |
| 177 | print_dot(); |
| 178 | timer_id = g_timeout_add(reconnect_msec, mon_timer_popped, NULL); |
| 179 | } |
| 180 | return FALSE; |
| 181 | } |
| 182 | |
| 183 | static void |
| 184 | mon_cib_connection_destroy(gpointer user_data) |
nothing calls this directly
no test coverage detected