Fix bug in automatic TG config/IP updater

This commit is contained in:
Сергей Прохоров 2018-10-04 08:26:02 +02:00
parent 2b1086442f
commit 1cfdf90513
No known key found for this signature in database
GPG key ID: 1C570244E4EF3337

View file

@ -78,8 +78,11 @@ init([]) ->
protected,
named_table,
{read_concurrency, true}]),
{ok, update(#state{tab = Tab,
timer = Timer}, force)}.
State = #state{tab = Tab,
timer = Timer},
update(State, force),
{ok, State}.
%%--------------------------------------------------------------------
handle_call(_Request, _From, State) ->
Reply = ok,