diff options
author | 2016-12-22 13:28:17 +0300 | |
---|---|---|
committer | 2016-12-22 13:32:34 +0300 | |
commit | a6aa01258352a4053d55727c974492ffe27f1fcc (patch) | |
tree | c1d36b871ececbf653c1e806e1f73765c6e87916 /juick-xmpp/src/main/java/com/juick/components/s2s/ConnectionOut.java | |
parent | ebfae6637d88c9d444f39c7fbe43ce4b7ffc130f (diff) |
juick-xmpp: refactoring
Diffstat (limited to 'juick-xmpp/src/main/java/com/juick/components/s2s/ConnectionOut.java')
-rw-r--r-- | juick-xmpp/src/main/java/com/juick/components/s2s/ConnectionOut.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/juick-xmpp/src/main/java/com/juick/components/s2s/ConnectionOut.java b/juick-xmpp/src/main/java/com/juick/components/s2s/ConnectionOut.java index e39c143d..5f990ccd 100644 --- a/juick-xmpp/src/main/java/com/juick/components/s2s/ConnectionOut.java +++ b/juick-xmpp/src/main/java/com/juick/components/s2s/ConnectionOut.java @@ -167,4 +167,10 @@ public class ConnectionOut extends Connection implements Runnable { sendStanza("<db:verify from='" + xmpp.HOSTNAME + "' to='" + to + "' id='" + sid + "'>" + key + "</db:verify>"); } + + @Override + public void restartParser() throws XmlPullParserException, IOException { + super.restartParser(); + streamID = UUID.randomUUID().toString(); + } } |