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); |