--- a/xmpp/xmpp.go Sun Sep 29 21:56:19 2013 -0600
+++ b/xmpp/xmpp.go Mon Sep 30 18:59:37 2013 -0600
@@ -288,3 +288,10 @@
Debug.Log(buf)
}
}
+
+func (cl *Client) Close() {
+ // Shuts down the receivers:
+ cl.setStatus(StatusShutdown)
+ // Shuts down the senders:
+ close(cl.Send)
+}