xmpp/stream.go
changeset 140 f94b958f8df0
parent 130 da6f37ae3ffe
child 142 0ff033eed887
--- a/xmpp/stream.go	Mon Sep 09 04:27:53 2013 +0100
+++ b/xmpp/stream.go	Wed Sep 11 17:17:50 2013 -0600
@@ -305,7 +305,7 @@
 
 func (cl *Client) handleStreamError(se *streamError) {
 	Info.Logf("Received stream error: %v", se)
-	close(cl.Send)
+	cl.socket.Close()
 }
 
 func (cl *Client) handleFeatures(fe *Features) {