examples/interact.go
changeset 69 a38173c1c8b2
parent 68 d693ecc11f29
child 76 caa722ab8a0f
child 100 24231ff0016c
--- a/examples/interact.go	Sun Jan 08 09:11:14 2012 -0700
+++ b/examples/interact.go	Sun Jan 08 13:04:09 2012 -0700
@@ -10,7 +10,7 @@
 	"fmt"
 	"log"
 	"os"
-	)
+)
 
 // Demonstrate the API, and allow the user to interact with an XMPP
 // server via the terminal.
@@ -28,7 +28,7 @@
 	if err != nil {
 		log.Fatalf("NewClient(%v): %v", jid, err)
 	}
-	defer c.Close()
+	defer close(c.Out)
 
 	err = c.StartSession(true, &xmpp.Presence{})
 	if err != nil {