Software / code / verse
Comparison
plugins/jingle.lua @ 118:d076948cd0e1
plugins.jingle: Add 'terminated' event
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Thu, 09 Sep 2010 19:10:37 +0100 |
| parent | 100:e45883a3f39a |
| child | 140:97bf22d6ff96 |
comparison
equal
deleted
inserted
replaced
| 117:f523516196ce | 118:d076948cd0e1 |
|---|---|
| 256 self:destroy(); | 256 self:destroy(); |
| 257 end); | 257 end); |
| 258 end | 258 end |
| 259 | 259 |
| 260 function jingle_mt:destroy() | 260 function jingle_mt:destroy() |
| 261 self:event("terminated"); | |
| 261 self.stream:unhook("jingle/"..self.sid, self.handle_command); | 262 self.stream:unhook("jingle/"..self.sid, self.handle_command); |
| 262 end | 263 end |
| 263 | 264 |
| 264 function jingle_mt:handle_accepted(jingle_tag) | 265 function jingle_mt:handle_accepted(jingle_tag) |
| 265 local transport_tag = jingle_tag:child_with_name("transport"); | 266 local transport_tag = jingle_tag:child_with_name("transport"); |