mirror of
https://github.com/bjc/prosody.git
synced 2025-04-03 21:27:38 +03:00
Fix logging in some cases for client disconnects
This commit is contained in:
parent
164a1d1c08
commit
17768803c9
1 changed files with 1 additions and 1 deletions
|
@ -82,7 +82,7 @@ function xmppclient.disconnect(conn, err)
|
|||
pres:tag("status"):text("Disconnected: "..err);
|
||||
session.stanza_dispatch(pres);
|
||||
end
|
||||
session.log("info", "Client disconnected: %s", err);
|
||||
(session.log or log)("info", "Client disconnected: %s", err);
|
||||
sm_destroy_session(session);
|
||||
sessions[conn] = nil;
|
||||
session = nil;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue