24
1
mirror of https://github.com/processone/ejabberd.git synced 2024-06-10 21:47:01 +02:00

Better log bytestream termination

This commit is contained in:
Evgeniy Khramtsov 2017-01-17 23:06:55 +03:00
parent 9021ba01ac
commit 7b8c01da12

View File

@ -102,7 +102,7 @@ terminate(_Reason, StateName, #state{sha1 = SHA1}) ->
Mod = gen_mod:ram_db_mod(global, mod_proxy65), Mod = gen_mod:ram_db_mod(global, mod_proxy65),
Mod:unregister_stream(SHA1), Mod:unregister_stream(SHA1),
if StateName == stream_established -> if StateName == stream_established ->
?INFO_MSG("Bytestream terminated", []); ?INFO_MSG("(~w) Bytestream terminated", [self()]);
true -> ok true -> ok
end. end.