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