1. Fred T-H
  2. chut

Commits

Fred T-H  committed 17e7f52

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

  • Participants
  • Parent commits 7b1757a
  • Branches default

Comments (0)

Files changed (1)

File src/usr_dispatch_manager.erl

View file
 %% 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()