diff --git a/source/org/jivesoftware/smack/XMPPConnection.java b/source/org/jivesoftware/smack/XMPPConnection.java index 494b8b42c..5e3fd689f 100644 --- a/source/org/jivesoftware/smack/XMPPConnection.java +++ b/source/org/jivesoftware/smack/XMPPConnection.java @@ -597,7 +597,7 @@ public class XMPPConnection extends Connection { else { xmppError = new XMPPError(XMPPError.Condition.remote_server_timeout); } - throw new XMPPException(sb.toString(), xmppError); + throw new XMPPException(sb.toString(), xmppError, exception); } } socketClosed = false;