user->kill_state = USER_KILL_STATE_NONE;
timeout_remove(&user->to_move);
+
+ /* FIXME: shouldn't use global director, but for now there's no easy
+ way to get access to it otherwise */
+ director->state_change_callback(director);
}
void director_move_user(struct director *dir, struct director_host *src,
};
extern bool director_debug;
+extern struct director *director; /* FIXME: shouldn't be global */
/* Create a new director. If listen_ip specifies an actual IP, it's used with
listen_port for finding ourself from the director_servers setting.
DIRECTOR_SOCKET_TYPE_DOVEADM
};
-static struct director *director;
+struct director *director;
static struct notify_connection *notify_conn;
static struct timeout *to_proctitle_refresh;
static ARRAY(enum director_socket_type) listener_socket_types;