From cf4538086691f5234597245822045561bb2a4e38 Mon Sep 17 00:00:00 2001 From: Matt Goodall Date: Tue, 10 Jul 2012 17:12:54 +0100 Subject: [PATCH] Only call with attrs that need to be non-zero. --- src/xmpp/xmpp.go | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/xmpp/xmpp.go b/src/xmpp/xmpp.go index 6c6060a..fb5afda 100644 --- a/src/xmpp/xmpp.go +++ b/src/xmpp/xmpp.go @@ -20,12 +20,11 @@ type XMPP struct { func newXMPP(jid JID, stream *Stream) *XMPP { x := &XMPP{ - jid, - stream, - make(chan interface{}), - make(chan interface{}), - 0, - make(map[FilterId]filter), + JID: jid, + stream: stream, + in: make(chan interface{}), + out: make(chan interface{}), + filters: make(map[FilterId]filter), } go x.sender() go x.receiver()