diff -r 122ab6208c3c -r c9527bbe99a6 xmpp.go --- a/xmpp.go Tue Dec 27 20:42:44 2011 -0700 +++ b/xmpp.go Wed Dec 28 11:30:10 2011 -0700 @@ -43,6 +43,7 @@ authDone bool idMutex sync.Mutex nextId int64 + handlers chan *stanzaHandler In <-chan interface{} Out chan<- interface{} xmlOut chan<- interface{} @@ -84,6 +85,7 @@ cl.password = password cl.Jid = *jid cl.socket = tcp + cl.handlers = make(chan *stanzaHandler) // Start the transport handler, initially unencrypted. tlsr, tlsw := cl.startTransport()