Przeglądaj źródła

chore(persistent_sessions): remove redundant trap_exit flag

Tobias Lindahl 4 lat temu
rodzic
commit
558416af1d
1 zmienionych plików z 0 dodań i 1 usunięć
  1. 0 1
      apps/emqx/src/emqx_session_router_worker.erl

+ 0 - 1
apps/emqx/src/emqx_session_router_worker.erl

@@ -91,7 +91,6 @@ buffer(Worker, STopic, Msg) ->
 init(#{ remote_pid  := RemotePid
       , session_id  := SessionID
       , session_tab := SessionTab}) ->
-    process_flag(trap_exit, true),
     erlang:monitor(process, RemotePid),
     ?tp(ps_worker_started, #{ remote_pid => RemotePid
                             , sid => SessionID }),