summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core.c b/src/core.c
index bda0eb9..896ba59 100644
--- a/src/core.c
+++ b/src/core.c
@@ -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",