xmpp.go
changeset 13 c9527bbe99a6
parent 12 122ab6208c3c
child 15 aa2cf77f0ed3
--- 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()