Mercurial > prosody-hg
comparison core/s2smanager.lua @ 1199:db2a55fe94f2
s2smanager: Only send reply </stream:stream> when connection is still open
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Tue, 26 May 2009 01:07:52 +0100 |
| parents | 831c84cbf5fa |
| children | dea89234e545 |
comparison
equal
deleted
inserted
replaced
| 1198:545c81364939 | 1199:db2a55fe94f2 |
|---|---|
| 304 session.notopen = nil; | 304 session.notopen = nil; |
| 305 end | 305 end |
| 306 | 306 |
| 307 function streamclosed(session) | 307 function streamclosed(session) |
| 308 (session.log or log)("debug", "</stream:stream>"); | 308 (session.log or log)("debug", "</stream:stream>"); |
| 309 session.sends2s("</stream:stream>"); | 309 if session.sends2s then |
| 310 session.sends2s("</stream:stream>"); | |
| 311 end | |
| 310 session.notopen = true; | 312 session.notopen = true; |
| 311 end | 313 end |
| 312 | 314 |
| 313 function initiate_dialback(session) | 315 function initiate_dialback(session) |
| 314 -- generate dialback key | 316 -- generate dialback key |
