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 ->
|
undefined ->
|
||||||
ok;
|
ok;
|
||||||
SessionPid ->
|
SessionPid ->
|
||||||
|
unlink(SessionPid),
|
||||||
SessionPid ! {'EXIT', self(), Reason}
|
SessionPid ! {'EXIT', self(), Reason}
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue