example/interact.go
changeset 162 7b5586a5e109
parent 159 fd4089f717b2
child 163 3f891f7fe817
--- a/example/interact.go	Sun Sep 29 21:56:19 2013 -0600
+++ b/example/interact.go	Mon Sep 30 18:59:37 2013 -0600
@@ -52,7 +52,7 @@
 	if err != nil {
 		log.Fatalf("NewClient(%v): %v", jid, err)
 	}
-	defer close(c.Send)
+	defer c.Close()
 
 	go func(ch <-chan xmpp.Stanza) {
 		for obj := range ch {