Software /
code /
prosody
Comparison
core/s2smanager.lua @ 2747:168104895051
sessionmanager, s2smanager: Close session on </stream:stream>
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Thu, 11 Mar 2010 01:04:19 +0000 |
parent | 2746:3b9547fc0bed |
child | 2748:85a242cd1bc4 |
comparison
equal
deleted
inserted
replaced
2746:3b9547fc0bed | 2747:168104895051 |
---|---|
432 end | 432 end |
433 session.notopen = nil; | 433 session.notopen = nil; |
434 end | 434 end |
435 | 435 |
436 function streamclosed(session) | 436 function streamclosed(session) |
437 (session.log or log)("debug", "</stream:stream>"); | 437 (session.log or log)("debug", "Received </stream:stream>"); |
438 if session.sends2s then | 438 session:close(); |
439 session.sends2s("</stream:stream>"); | |
440 end | |
441 session.notopen = true; | |
442 end | 439 end |
443 | 440 |
444 function initiate_dialback(session) | 441 function initiate_dialback(session) |
445 -- generate dialback key | 442 -- generate dialback key |
446 session.dialback_key = generate_dialback(session.streamid, session.to_host, session.from_host); | 443 session.dialback_key = generate_dialback(session.streamid, session.to_host, session.from_host); |