From 1211f6c67bdcb619f9f81b0461e2d2980c36efd4 Mon Sep 17 00:00:00 2001 From: "Difrex(Denis Zheleztsov)" Date: Fri, 8 Aug 2014 10:41:09 +0400 Subject: [PATCH] Reload config in get --- iiplc.app | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/iiplc.app b/iiplc.app index e9cb968..0c146b3 100644 --- a/iiplc.app +++ b/iiplc.app @@ -35,7 +35,6 @@ use Data::Dumper; my $c = II::Config->new(); my $config = $c->load(); -my $GET = II::Get->new($config); my $render = II::Render->new(); my $echo = sub { @@ -65,6 +64,8 @@ my $thread = sub { }; my $get = sub { + $config = $c->reload(); + my $GET = II::Get->new($config); my $msgs = $GET->get_echo(); my $new_mes = $render->new_mes($msgs); return [ 200, [ 'Content-type' => 'text/html' ], ["$new_mes"], ];