Mercurial > prosody-hg
comparison core/s2smanager.lua @ 2915:f47bd0f7e2e6
sessionmanager, s2smanager: Add type of ?2s_destroyed to resting sessions (fixes a logging traceback, thanks Flo)
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Mon, 22 Mar 2010 14:58:25 +0000 |
| parents | 9f214431de29 |
| children | 692b3c6c5bd2 |
comparison
equal
deleted
inserted
replaced
| 2913:3d4e814cadfa | 2915:f47bd0f7e2e6 |
|---|---|
| 504 end | 504 end |
| 505 end | 505 end |
| 506 | 506 |
| 507 local resting_session = { -- Resting, not dead | 507 local resting_session = { -- Resting, not dead |
| 508 destroyed = true; | 508 destroyed = true; |
| 509 type = "s2s_destroyed"; | |
| 509 open_stream = function (session) | 510 open_stream = function (session) |
| 510 session.log("debug", "Attempt to open stream on resting session"); | 511 session.log("debug", "Attempt to open stream on resting session"); |
| 511 end; | 512 end; |
| 512 close = function (session) | 513 close = function (session) |
| 513 session.log("debug", "Attempt to close already-closed session"); | 514 session.log("debug", "Attempt to close already-closed session"); |
