xmpp/layer3.go
changeset 162 7b5586a5e109
parent 153 bbd4166df95d
child 163 3f891f7fe817
--- a/xmpp/layer3.go	Sun Sep 29 21:56:19 2013 -0600
+++ b/xmpp/layer3.go	Mon Sep 30 18:59:37 2013 -0600
@@ -26,7 +26,10 @@
 	var input <-chan Stanza
 	for {
 		select {
-		case stat := <-status:
+		case stat, ok := <-status:
+			if !ok {
+				return
+			}
 			switch stat {
 			default:
 				input = nil