Commits

Fred T-H committed 17e7f52

Fixing a faulty handler attachment, supervising where there should be none

Comments (0)

Files changed (1)

src/usr_dispatch_manager.erl

 %% Description: Adds an event handler
 %%--------------------------------------------------------------------
 add_handler(UserId, Handler = {_Module, _HandlerId}, Params) ->
-    gen_event:add_sup_handler({global, {manager, UserId}}, Handler, Params);
+    gen_event:add_handler({global, {manager, UserId}}, Handler, Params);
 add_handler(UserId, Module, Params) when is_atom(Module) ->
-    gen_event:add_sup_handler({global, {manager, UserId}}, Module, Params).
+    gen_event:add_handler({global, {manager, UserId}}, Module, Params).
 
 %%--------------------------------------------------------------------
 %% Function: add_sup_handler(Module,Args) -> ok | {'EXIT',Reason} | term()