瀏覽代碼

fix(persistent_sessions): add back the trap_exit

Tobias Lindahl 4 年之前
父節點
當前提交
99836b2660
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      apps/emqx/src/emqx_session_router_worker.erl

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

@@ -91,6 +91,7 @@ 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 }),