Avoiding a state change callback while still constructing catta server, so
the callback can expect to have a readily constructed catta server
available. This changes the behaviour and catta will only change into
running state when at least one network interface is found and used.
assert(s);
server_set_state(s, CATTA_SERVER_REGISTERING);
- s->n_host_rr_pending ++; /** Make sure that the state isn't changed tp CATTA_SERVER_RUNNING too early */
+ s->n_host_rr_pending ++; /** Make sure that the state isn't changed to CATTA_SERVER_RUNNING too early */
register_hinfo(s);
register_browse_domain(s);
assert(s->n_host_rr_pending > 0);
s->n_host_rr_pending --;
-
- if (s->n_host_rr_pending == 0)
- server_set_state(s, CATTA_SERVER_RUNNING);
}
static void update_fqdn(CattaServer *s) {