implemented enough of the stack/session logic to make stateless requests and receive...
[OpenSRF.git] / src / java / org / opensrf / net / xmpp / XMPPSession.java
index 68147aa..bcd304e 100644 (file)
@@ -138,7 +138,8 @@ public class XMPPSession {
     public synchronized void send(XMPPMessage msg) throws XMPPException {
         checkConnected();
         try {
-            outStream.write(msg.toXML().getBytes()); 
+            String xml = msg.toXML();
+            outStream.write(xml.getBytes()); 
         } catch (Exception e) {
             throw new XMPPException(e.toString());
         }