11:ce349990bd21 | 12:73f466054ead |
---|---|
63 function stream:reopen() | 63 function stream:reopen() |
64 reset_stream(self); | 64 reset_stream(self); |
65 self:send(st.stanza("stream:stream", { to = self.host, ["xmlns:stream"]='http://etherx.jabber.org/streams', xmlns = "jabber:client" }):top_tag()); | 65 self:send(st.stanza("stream:stream", { to = self.host, ["xmlns:stream"]='http://etherx.jabber.org/streams', xmlns = "jabber:client" }):top_tag()); |
66 end | 66 end |
67 | 67 |
68 function stream:close(reason) | |
69 if not self.notopen then | |
70 self:send("</stream:stream>"); | |
71 end | |
72 self.conn:close(); | |
73 end | |
74 |