diff -r 6e2eea62ccca -r a38173c1c8b2 examples/interact.go --- 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 {