121 self:reopen(); |
121 self:reopen(); |
122 end |
122 end |
123 |
123 |
124 function stream:reopen() |
124 function stream:reopen() |
125 self:reset(); |
125 self:reset(); |
126 self:send(st.stanza("stream:stream", { to = self.host, ["xmlns:stream"]='http://etherx.jabber.org/streams', |
126 self:send(st.stanza("stream:stream", { to = self.jid, ["xmlns:stream"]='http://etherx.jabber.org/streams', |
127 xmlns = xmlns_component, version = "1.0" }):top_tag()); |
127 xmlns = xmlns_component, version = "1.0" }):top_tag()); |
128 end |
128 end |
129 |
129 |
130 function stream:close(reason) |
130 function stream:close(reason) |
131 if not self.notopen then |
131 if not self.notopen then |