Software /
code /
prosody
Comparison
plugins/mod_c2s.lua @ 7224:07a4c807a94a
Merge 0.9->0.10
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Wed, 02 Mar 2016 16:32:37 +0100 |
parent | 7101:f83211f4d776 |
parent | 7221:56e65b1e54e8 |
child | 7284:9434a220e549 |
comparison
equal
deleted
inserted
replaced
7218:6226307f6ac4 | 7224:07a4c807a94a |
---|---|
281 measure_connections(-1); | 281 measure_connections(-1); |
282 local session = sessions[conn]; | 282 local session = sessions[conn]; |
283 if session then | 283 if session then |
284 (session.log or log)("info", "Client disconnected: %s", err or "connection closed"); | 284 (session.log or log)("info", "Client disconnected: %s", err or "connection closed"); |
285 sm_destroy_session(session, err); | 285 sm_destroy_session(session, err); |
286 session.conn = nil; | |
286 sessions[conn] = nil; | 287 sessions[conn] = nil; |
287 end | 288 end |
288 end | 289 end |
289 | 290 |
290 function listener.onreadtimeout(conn) | 291 function listener.onreadtimeout(conn) |