xmpp/xmpp.go
changeset 162 7b5586a5e109
parent 158 2d948fcbb5d7
child 163 3f891f7fe817
--- 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)
+}