mirror of
https://github.com/processone/ejabberd.git
synced 2024-09-25 14:24:55 +02:00
fir state initialization
This commit is contained in:
parent
f05a4d1638
commit
3b7458bbc2
@ -878,7 +878,7 @@ get_state(NodeIdx, JID) ->
|
|||||||
StateId = {JID, NodeIdx},
|
StateId = {JID, NodeIdx},
|
||||||
case catch mnesia:read({pubsub_state, StateId}) of
|
case catch mnesia:read({pubsub_state, StateId}) of
|
||||||
[State] when is_record(State, pubsub_state) -> State;
|
[State] when is_record(State, pubsub_state) -> State;
|
||||||
_ -> #pubsub_state{stateid=StateId}
|
_ -> #pubsub_state{stateid=StateId, nodeidx=NodeIdx}
|
||||||
end.
|
end.
|
||||||
|
|
||||||
%% @spec (State) -> ok | {error, Reason}
|
%% @spec (State) -> ok | {error, Reason}
|
||||||
|
Loading…
Reference in New Issue
Block a user