diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/core.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -213,6 +213,8 @@ static void tip_client_redirect_timer_cb(struct ev_loop *loop, ev_timer *timer, free(redir); } +#define TIP_CLIENT_REDIRECT_TIMEOUT 300. + int tip_client_redirect_create(const struct tip_client *cli) { struct tip_client_redirect *redir; @@ -246,7 +248,7 @@ int tip_client_redirect_create(const struct tip_client *cli) redir->users = max_clients; list_add_tail(&redir->list, &client_redirect_list); - ev_timer_init(&redir->timer, tip_client_redirect_timer_cb, 60, 0.); + ev_timer_init(&redir->timer, tip_client_redirect_timer_cb, TIP_CLIENT_REDIRECT_TIMEOUT, 0.); ev_timer_start(tip_main_loop, &redir->timer); syslog(LOG_INFO, "adding client redirection to %s:%hu for %s", |