Unlink session when exit message has been forwarded to session (#2703)
* Unlink session when exit message has been forwarded to session * Readjust possition of emqx_protocol:session
This commit is contained in:
parent
49afbdabda
commit
05b660ff50
|
@ -328,6 +328,7 @@ terminate_session(Reason, ProtoState) ->
|
|||
undefined ->
|
||||
ok;
|
||||
SessionPid ->
|
||||
unlink(SessionPid),
|
||||
SessionPid ! {'EXIT', self(), Reason}
|
||||
end.
|
||||
|
||||
|
|
Loading…
Reference in New Issue