--- 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