diff options
author | Vitaly Takmazov | 2016-07-06 19:08:21 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2016-07-06 19:08:21 +0300 |
commit | 32b3acd9a2cd20ea51e1375756bd95583d7e3dd7 (patch) | |
tree | 53971f0a41f401b5995d199e4615c2c13b6057c5 /src/main/java | |
parent | 02fd70cf59c30e3a9702eaf60d9e51f460efd8ca (diff) |
s2s: connection out must have stream id
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/com/juick/xmpp/s2s/ConnectionOut.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main/java/com/juick/xmpp/s2s/ConnectionOut.java b/src/main/java/com/juick/xmpp/s2s/ConnectionOut.java index b79cb49a..581881a6 100644 --- a/src/main/java/com/juick/xmpp/s2s/ConnectionOut.java +++ b/src/main/java/com/juick/xmpp/s2s/ConnectionOut.java @@ -17,6 +17,7 @@ import java.security.KeyStoreException; import java.security.NoSuchAlgorithmException; import java.security.UnrecoverableKeyException; import java.security.cert.CertificateException; +import java.util.UUID; import java.util.logging.Level; /** @@ -41,6 +42,7 @@ public class ConnectionOut extends Connection implements Runnable { to = hostname; this.checkSID = checkSID; this.dbKey = dbKey; + streamID = UUID.randomUUID().toString(); } void sendOpenStream() throws IOException { |